Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body{background-color:#f0f;}
#d1{background-color:#f00;width:500px;height:400px;}
#d2{background-color:#0f0;margin-left:100px;height:400px;}
#d3{background-color:#000;margin-right:100px;margin-top:20px;height:300px;}
</style>
</head>
<body>
<div id="d1">
<div id="d2">
<div id="d3">
</div>
</div>
<div>
</body>
</html>ie 6
save above code as html page and run...
on ie black div is has 20px top margin
on firefox there is no margin??
looks like a bug to me... but maybe it is something i don't know about