Page 1 of 1

ie bugs:height treated as min-height??

Posted: Thu Nov 04, 2004 1:44 pm
by newmember
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?

Code: Select all

<html>
<head>
<style type="text/css">
#body&#123;width:100%&#125;

#first&#123;
height:100px;
border-style:solid;border-width:1px;border-color:#000;background-color:#f00;
&#125;

#second&#123;
height:1px; /* <-------why IE ignores this??? */
background-color:#fff;
&#125;

</style>
</head>
<body>
<div id="first"><div id="second"></div></div>	
<body>
</html>
thank you

Posted: Thu Nov 04, 2004 2:01 pm
by Draco_03
add

Code: Select all

font-family: Arial, Helvetica, sans-serif;
	font-size: 1px;
to #second

Posted: Thu Nov 04, 2004 2:22 pm
by newmember
ok thanks
i tried earlier
overflow:hidden and it also helps...

i wanted to know if it is some known IE bug?

Posted: Thu Nov 04, 2004 2:50 pm
by Draco_03
font size in IE is automatic at 8 I think. or something so when you force font size it's fix