ie bugs:height treated as min-height??
Posted: Thu Nov 04, 2004 1:44 pm
try to run this piece of html in IE and compare it to firefox...
I don't understand why IE ignores height:1px on #second div?
thank you
I don't understand why IE ignores height:1px on #second div?
Code: Select all
<html>
<head>
<style type="text/css">
#body{width:100%}
#first{
height:100px;
border-style:solid;border-width:1px;border-color:#000;background-color:#f00;
}
#second{
height:1px; /* <-------why IE ignores this??? */
background-color:#fff;
}
</style>
</head>
<body>
<div id="first"><div id="second"></div></div>
<body>
</html>