Cookies en Outbook

Esta web utiliza cookies propias para ofrecer una mejor experiencia. Al navegar, aceptas dichas cookies.
  • Más información acerca de las cookies

Outbook

UI-Dev & more

CSS: Minimum height with min-height, even in IE6

When we use a minimum height for an element we must use the property min-height , which sets a minimum height for that element. But it has one drawback: it is not compatible with Internet Explorer 6.

For Internet Explorer 6 may use the property height interprets it the same way that other browsers interpret min-height (including later versions of Internet Explorer).

Now need to pass this argument to CSS code. It provides a CSS rule with the minimum height of the element that will read all browsers. The min-height property in this rule will be ignored by IE6. And then a second rule only for IE6 and earlier with height property:

#element {min-height:10em;}
	* html #element {height:10em;}

Easier impossible.

Publicado

Categorías: