[thelist] IE6 and it's box model....

Gary McPherson genyus at ingenyus.net
Thu Jul 10 16:13:54 CDT 2003


>   I'm having the hardest time creating a simple box?!?! I
> want to create a box that is 100% wide but is only 10px in
> height. I had another box with double it's height, and same
> width, one below the other with z-index. It works fine in the
> other browser but IE6 set's it to a minimum height of 20px! I
> can make it bigger and it does adjust, but anything lower
> than 20px is still rendered at 20px.
<snip>
> <div id="box1">
> </div>


IE displays this behaviour with empty divs. Insert a 1x1 shim image and
it'll display as you expect.

HTH,

Gary




More information about the thelist mailing list