# Dynamic Text-Width in CSS/Javascript

**URL:** <https://forum.kirupa.com/t/dynamic-text-width-in-css-javascript/180487>\
**Category:** web dev\
**Created:** [March 1, 2006, 12:32am UTC](https://forum.kirupa.com/t/dynamic-text-width-in-css-javascript/180487 "2006-03-01T00:32:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 1, 2006, 12:32am UTC](https://forum.kirupa.com/t/dynamic-text-width-in-css-javascript/180487/1 "2006-03-01T00:32:07Z")

</div>

I have an input field, and as the user types, I need to to move a span directly underneath it.

I’ve got the span directly below it using “making the absolute, relative,” but I’m stuck with getting it directly under the position of the last key pressed.

Is this possible, or am I dreaming?
