/ Published in: CSS
This snippet uses html>body instead of * html. Works in all modern-browsers, degrades to just height for older browsers.
Expand |
Embed | Plain Text
#minHeightItem { height: 100px; /* this is the height that IE6 and other older browsers will use */ } /* "html>body" is preferred over other methods because it is valid CSS, it doesn't have problems with specificity that other methods have, and it is forwards compatible */ html>body #minHeightItem { height: auto; /* reset the height for compliant browsers */ min-height: 100px; }
You need to login to post a comment.
