Return to Snippet

Revision: 59
at June 29, 2006 13:57 by travis


Initial Code
#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;
}

Initial URL


Initial Description
This snippet uses html>body instead of * html. Works in all modern-browsers, degrades to just height for older browsers.

Initial Title
simple min-height for all browsers

Initial Tags
css

Initial Language
CSS