Results 1 to 5 of 5

Thread: box changing width

  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post box changing width

    hello i am trying to stretch a div based on the width of the text inside of the div does anybody know what i would use in css

    i am trying to make one line of text for a header and not two or more lines

    thank you very much

  2. #2
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if you give the header text a style, you could tell it to display inline. Normally the text will adhere to the size of the div, not the other way around. Although i suppose you could

    try

    h1 (or any other style) {display: inline
    }

  3. #3
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://24.119.130.225/user/

    see my title i have a fixed width though

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    your width isn't wide enough though for the amount of text and the text size you have though. you can make the text size smaller or increase the width.

  5. #5
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    actually you mention height of the div.
    Remove height of the div give padding top and bottom and increase the font size
    your problem is solve
    bye

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
  •