Forum Moderators: not2easy

Message Too Old, No Replies

Textbox Resizing

         

kiwidesign

1:25 am on Feb 8, 2007 (gmt 0)

10+ Year Member



Hi all,

Is there any way using CSS to make a textbox grow (or shrink) to fit the text inside it - up to a max length?

Cheers
Kiwidesign

mihai2u

3:59 am on Feb 11, 2007 (gmt 0)

10+ Year Member



s there any way using CSS to make a textbox grow (or shrink) to fit the text inside it - up to a max length?

This is not possible if you are using block-level elements. The only thing i can think up, right now, is using a span.. inside a paragraph/div, and set that span a maximum width.

Try it with max-width... and look at it in firefox.. if things go well, you should search a lil on Ggle for how to make "ie" recognize max-width. (it's an activeX thingy).