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
The following is a reference fragment:
}
Xhtml
The following is a reference fragment:
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
The following is a reference fragment:
* HTML div.box1,* HTML div.box2{height:150px;}
The wellstyled.com solution is to use the CSS property selector (attribute selectors)
The following is a reference fragment:
/* Div object with class selector (Class) attribute/*
IE is not supported by nature, Opera and Mozilla support, read this height. Applicable occasions: Search, articles and other pages (not using 100% height, when the content of the search is less, not too short page.)