Return to Snippet

Revision: 9892
at December 1, 2008 03:14 by sidisinsane


Updated Code
selector {
	height: 10em; /* min-height for IE. Must be declared above declaration for other browsers! */
}
selector:empty {
	min-height: 10em; /* min-height for browsers other than IE */
	height: auto !important; /* Override previously declared height for browsers other than IE */
}

or even simpler:

selector {
	min-height: 10em; /* min-height for browsers other than IE */
	height: auto !important; /* Override declared height for browsers other than IE */
	height: 10em; /* min-height for IE */
}

Revision: 9891
at November 28, 2008 05:19 by sidisinsane


Initial Code
selector {
	height: 10em; /* min-height for IE. Must be declared above declaration for other browsers! */
}
selector:empty {
	min-height: 10em; /* min-height for browsers other than IE */
	height: auto !important; /* Override previously declared height for browsers other than IE */
}

Initial URL

                                

Initial Description
Only tested in Safari 3, Opera 9.5 and Firefox 2 (all Mac OS) for now, but it should actually work. If you run into any problems, please provide some feedback.

Initial Title
Crossbrowser min-height

Initial Tags
css, ie

Initial Language
CSS