MrComputerGeek
07-14-2008, 11:58 PM
<html>
<head>
<style type="text/css">
#container {
background: #000000;
margin: 0px;
padding: 0px;
width: 800px;
height: 400px;
}
#other {
background: #FF0000;
width: 400px;
height: 20px;
margin: 20px;
padding: 0px;
}
</style>
</head>
<body>
<div id="container">
<div id="other">this is a test</div>
</div>
</body>
</html>
For some reason, when I view this in the latest version of Firefox, the margin on #other moves BOTH #container and #other down 20px. However, it does move the #other div to the right 20px without effect to the #container. I'm under the Impression that the #container div should not be effected by this at all. Any Ideas?
P.S. It works just fine in IE.
<head>
<style type="text/css">
#container {
background: #000000;
margin: 0px;
padding: 0px;
width: 800px;
height: 400px;
}
#other {
background: #FF0000;
width: 400px;
height: 20px;
margin: 20px;
padding: 0px;
}
</style>
</head>
<body>
<div id="container">
<div id="other">this is a test</div>
</div>
</body>
</html>
For some reason, when I view this in the latest version of Firefox, the margin on #other moves BOTH #container and #other down 20px. However, it does move the #other div to the right 20px without effect to the #container. I'm under the Impression that the #container div should not be effected by this at all. Any Ideas?
P.S. It works just fine in IE.