Results 1 to 3 of 3

Thread: Need help with auto expanding a div text box

  1. #1
    Join Date
    Dec 2005
    Location
    Southern California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Need help with auto expanding a div text box

    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!

  2. #2
    Join Date
    Dec 2005
    Location
    Southern California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Jul 2008
    Location
    boston, ma
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    put 10px padding on the bottom of the text.

    padding-bottom:10px;


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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •