Outbook
HTML+CSS+JS, Accesibilidad, PHP y más
Inicio
Desarrollo web
CSS
CSS: Minimum height with min-height, even in IE6
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.
Artículos relacionados:
Datos del artículo:
- Publicado el Lunes 21 de diciembre de 2009 a las 17:54
- Archivado en CSS, Desarrollo web
- Etiquetas: CSS, height, Internet Explorer 6, min-height, Web development
- Seguimiento de comentarios (RSS 2.0).
Comentarios del artículo
Puedes comentar o hacer trackback desde tu propio sitio web.
Si el comentario no guarda relación con el tema del artículo o los comentarios previos, si la redacción del mismo es ilegible (estilo HOYGAN), o si contiene insultos u otros términos ofensivos, será borrado de inmediato. No se garantiza ningún soporte a los ejemplos de desarrollo web presentados en este sitio.
Todavía no hay comentarios.










