CSS
The minimum height can be set a box of the minimum height, when its content less time, can also keep box height is certain, beyond the automatic downward extension, but so far, only opera and Mozilla support, IE7 began to support, but IE7 in the test phase, Such official version of the release to the popularization of a period of time may be longer, unless the MS bundled it on an operating system, how on the existing basis (IE6 80-90%), reasonable, the minimum height of the magical?
Assuming there are two box, we need it with a minimum height of 150PX.
Css
div.box1,div.box2{
width: 300px;
min-height: 150px;
background: #EEE;
float: left;
margin-right: 20px;
}
Xhtml
<div class= "Box1" >ie did not maintain a minimum height of 150px</div>
<div class=:box2 ">; minimum height can set the minimum height of a box,
When the content is less, it can keep the box height as a certain
The minimum height can be set to the minimum height of a box,
When the content is less, it can keep box height for certain </div>
Now the effect, ie did not maintain a minimum height of 150px.
Way to solve
Set a height for IE
* HTML div.box1,* HTML div.box2{height:150px;}
The wellstyled.com solution is to use the CSS attribute selector
(Attribute selectors)
div.box1,div.box2{... height:150px;
/* IE to maintain the minimum height, beyond the automatic downward extension * *
Div[class].box1,div[class].box2{height:auto;}
/* Div object with class selector (Class) attribute/*
IE is not supported by nature, Opera and Mozilla support, read this height.
Application: Search, articles and other pages (not using 100% height, when the content of the search is less, not the page is too short ...)