There are two div 's, the second one has a margin-top: -50px css-property margin-top: -50px . But it turns out that the first div is located above the second (higher along the z axis). Why is that?
#a { font-size: 70px; } #b { margin-top: -50px; } <div id="a">a</div> <div id="b">Lorem ipsum dolor sit amet</div> It would seem that statically positioned elements should be located along the z axis in the order of their appearance in html