could someone explain something to me...
if you have the following code
then what seems to happen is although it will push the inner box down 20px due to the margin, it will also inadvertently add that margin to the outer div also
- so in the above example adding the 20px margin to the inner will also pull down the blue outer div... (well, the top of the inner div is also where the top of the blue starts)
this is on a xhtml 1.1 dtd and in safari and firefox.
any ideas?
if you have the following code
Code:
<div id="outer" style="background-color: blue; }
<div id="inner" style="margin-top: 20px; }
</div>
</div>
then what seems to happen is although it will push the inner box down 20px due to the margin, it will also inadvertently add that margin to the outer div also

this is on a xhtml 1.1 dtd and in safari and firefox.
any ideas?