Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Stretching DIV tags | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
SyntaxLegend

Double metal axe
Level: 25

Posts: 113/222
EXP: 78264
For next: 11356

Since: 04-21-04
From: Australia

Since last post: 20 days
Last activity: 10 hours
Posted on 12-04-04 03:38 PM Link | Quote
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.
Dylan
Devil Trumpets and Angel Trombones ~
Level: 54

Posts: 1173/1407
EXP: 1181697
For next: 52173

Since: 06-19-04
From: Ottawa, Canada.

Since last post: 1 day
Last activity: 6 hours
Posted on 12-04-04 10:28 PM Link | Quote
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.


(edited by Dylan on 12-04-04 01:29 PM)
SyntaxLegend

Double metal axe
Level: 25

Posts: 114/222
EXP: 78264
For next: 11356

Since: 04-21-04
From: Australia

Since last post: 20 days
Last activity: 10 hours
Posted on 12-05-04 03:35 AM Link | Quote
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?
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Stretching DIV tags | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.007 seconds.