Posted By

Uzbekjon on 07/07/08


Tagged

css hack ie


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SpinZ


Min-height attribute ignored in IE


 / Published in: CSS
 

“min-height” attribute works well in Firefox but IE ignores it. IE’s height act as FF’s min-height. Note: in IE 7 problem was fixed.

  1. /* for understanding browsers */
  2. .container {
  3. width:20em;
  4. padding:0.5em;
  5. border:1px solid #000;
  6. min-height:8em;
  7. height:auto;
  8. }
  9. /* for Internet Explorer */
  10. /*\*/
  11. * html .container {
  12. height: 8em;
  13. }
  14. /**/

Report this snippet  

You need to login to post a comment.