Previous Message
Next Message

minimum height in a div

Sent by Christian Heilmann on 29 March 2006 21:09


> How i can manage a minimum height on a div?

div{
min-height:300px;
}

MSIE does not get this though, so you need to do a

div{
height:300px;
}
html>body div{
height:auto;
min-height:300px;
}

As MSIE doesn't grasp the html>body selector it won't get the settings.

Other reads:
http://css-discuss.incutio.com/?page=MinWidth

The workarounds are the same for width and height.


--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: