Posted By

primitiveshaun on 04/15/11


Tagged

css height


Versions (?)

min-height for IE (and all other browsers)


 / Published in: CSS
 

  1. #container { min-height:500px; } * html #container { height:500px; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: primitiveshaun on April 15, 2011

Since min-height doesn't work in IE, this code makes up for IE's shortcomings. The first part of the code is the correct code that works in Firefox and Safari. The second part of the code is for IE. Internet Explorer will ignore min-height and is just given a height of 8em. The IE bug automatically expands the container to fit the extra text.

You need to login to post a comment.