I am a CSS newbie, but do not understand why Firefox 2.0.0.13 (win) does not honor the margin-bottom in the following code when IE7 and Safari 3.1 do.
Shouldn't the two boxes have a vertical space in-between?
Perhaps someone can help? Thanks...!
Shouldn't the two boxes have a vertical space in-between?
Perhaps someone can help? Thanks...!
Code:
<style> .container { width:300px; height:300px; border: 1px solid #0f0; } .box { width: 100px; height: 100px; border: 1px solid #000; margin-bottom: 10px; } .rel { background-color:#f00; position: relative; } .abs { background-color:#00f; position: absolute; } </style> <div class="container"> <div class="rel box">1</div> <div class="abs box">2</div> </div>
Comment