View Full Version : 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
chuco61
05-28-2009, 10:10 PM
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
}
http://24.119.130.225/user/
see my title i have a fixed width though
bluewalrus
05-29-2009, 02:01 AM
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.
madhukar
05-29-2009, 01:21 PM
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
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.