| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Branding Bitch
Join Date: May 2007
Posts: 84
|
divs stretching divs
i'm having a slight issue with a site i'm building. i've got a div container with a fixed height, and a content div inside that - which will contain all text/images etc. what i want is the div container to expand downward when i add to the content div. any ideas?? |
|
|
|
|
|
#3 (permalink) |
|
Everything is fine.
|
Sounds like you're after the "min-height" property as this will stretch downwards if/when the content inside your div expands. Otherwise it will stay at the height you specify. A word of warning though, this property is not supported in IE 5/6 so you'll need to do the necessaries to "emulate" it in those browsers. There are plenty of links on Google for fixing this. Hope that helps! - Mike Edit: Looks like Marc beat me to it |
|
![]() |