See what a simple code
.wrap { max-width: 1885px; width: 100%; margin: 0 auto; padding: 0px; } .slider { background-image: url("../img/slide1.png"); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; position: relative; } .logo { background-image: url("../img/logo.png"); background-repeat: no-repeat; width: 414px; height: 81px; margin: 20px 0 0 0; position: relative; } <header> <div class="slider"> <div class="wrap"> <div class="logo"></div> <nav> <ul class="mainNav"> <li>О нас</li> <li>Юридическим лицам</li> <li>Физическим лицам</li> <li>Карта сайта</li> <li>Интернет</li> </ul> </nav> </div> </div> </header> And here's the actual question, why when I set the .logo margin: 20px 0 0 0; for the logo and .slider goes .slider , and does not remain pressed to the screen?
PS - and if in .logo replacing the margin with padding then the indentation disappears completely, why?