Posted By

paulgrenwood on 09/23/09


css min-height height

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Cross Browser Minimum Height

 / Published in: CSS

Internet Explorer does not understand the min-height property but here’s the CSS trick to accomplish that in IE.

  1. #container{
  2. height:auto !important;/*all browsers except ie6 will respect the !important flag*/
  3. min-height:500px;
  4. height:500px;/*Should have the same value as the min height above*/
  5. }

Report this snippet  

You need to login to post a comment.