Min-height attribute ignored in IE


/ Published in: CSS
Save to your folder(s)

“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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.