Acmlm's Board - I2 Archive - Programming - Stretching DIV tags
User | Post |
SyntaxLegend
Posts: 114/222 |
so if i put the min height in for 350 pixels. It will be always 350 pixels, but when the text exceeds 350 pixels, will it stretch to compensate the text? |
Dylan
Posts: 1173/1407 |
If you want a specific height for divs, use something like this:
div {min-height: 350} *html div {height: 350}
IE doesn't recognize min-height, so use that *html. Other browsers will have the text flow off screen when using height for a div. Well, thats how I do it, dunno if theres a better way. |
SyntaxLegend
Posts: 113/222 |
i want to make a layout in DIV tags, i dont want it to be a scroll bat one. i have seen plenty of tutorials but none of which tell me a DIV tag that stretchs with the text. i have tried 'height:auto;'. I cant seem to get it right. |
|