Posted By

djmicahelb on 04/11/10


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Min height for IE (and all other browsers)

 / Published in: CSS

Using this, all modern browsers will apply min-height: 500px. IE will ignore the height auto in favour of the height 500px;

It works, just use it. No need for any IE specific CSS hacks.

  1. div.height {
  2. min-height:500px;
  3. height:auto !important;
  4. height:500px;
  5. }
  7. /* You simply need to ensure the height is the last declaration and IE6 will use it instead of the height auto declaration */

Report this snippet  

You need to login to post a comment.