Algemeen en interessant nieuws over en door NosTech


Setting a minimum height for a div
18-07-2008 15:16

Actually the solution is very easy for IE since IE treats height almost as if it were min-height. So the following will do what you want (assuming 200px was the min-height you wanted) {
  min-height: 200px
} // feed IE the same value for height, but not it IE Mac 5
* html .foo { /*\*/ height: 200px; }

Of course, Safari still doesn’t support min-height either, so you
might be interested in Dave Shea (of Mezzoblue and the CSS Zen
Garden)’s cunning fix

< Alle nieuws