I insert a block and give it a margin-top: 50px - and it shifts the parent body in this case. Why it happens?
If, however, give padding-top: - then ok
* { margin: 0; padding: 0; } body { outline: 1px solid red; } .logo-bg { outline: 1px solid orange; width: 100px; height: 100px; margin-top: 50px; } <div class="logo-bg"> <a href="#" class="logo">Logotype</a> </div>