Log in

View Full Version : Need help with auto expanding a div text box



janjan32
03-27-2009, 11:54 PM
I know this can be done, but I am stumped.
I am creating a form with a title tab, and I want to be able to type in the title text, and the tab will expand to 10px bigger than the text.
Currently I have my tag at a fixed size to fit the text, however, this will be reused throughout a site, and I don't want to change styles, or use inline styles.

I also can't get my background color to show, but that is a side point.
I attached my files if anyone wants to take a stab at it.
thanks!

janjan32
03-30-2009, 04:43 PM
never mind with the background colors, I had color in the td tags, duh.
I'm still trying to figure out the best approach to expand the text box.
thanks for any advise.
J

Irishcash33
03-30-2009, 05:02 PM
put 10px padding on the bottom of the text.

padding-bottom:10px;


There will always be 10px space after the last line of text.