The min-height declaration is poorly understood by Internet Explorer. However, here’s a trick to force minimum height on a block element that works in all browsers:

This would set a min-height of 200px on all browsers. All browsers except IE6 will respect the !important flag and ignore the second height property, while IE6 will […]

This article was posted by Independent Software, a website and database application development company based in Maputo, Mozambique. Our website offers regular write-ups on technical and design issues, ranging from details at code level to 3D Studio Max rendering. Read more about Independent Software's philosophy, or get in touch with Independent Software.

The min-height declaration is poorly understood by Internet Explorer. However, here’s a trick to force minimum height on a block element that works in all browsers:

This would set a min-height of 200px on all browsers. All browsers except IE6 will respect the !important flag and ignore the second height property, while IE6 will still use the second height property, then expand as needed.

Leave a Reply

Your email address will not be published. Required fields are marked *