I want to run a button in my menu, but every time that I set the margin-top
propperty to 10, the parent also goes 10 pixels down...
here's my code:
nav {
width: 100%;
height: 125px;
background-color: #fff;
border: 0.1px solid #fff;
-webkit-box-shadow: 0px -3px 7px -1px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px -3px 7px -1px rgba(50, 50, 50, 0.75);
box-shadow: 0px -3px 7px -1px rgba(50, 50, 50, 0.75);
}
#menuknop {
width: 40px;
height: 40px;
cursor: pointer;
background-image: url(../img/menuknopje.png);
background-repeat: no-repeat;
z-index: 101;
position: relative;
margin-top: 10px;
margin-right:5%;
margin-left:95%
}
And my HTML, really simple":
<nav>
<div id='menuknop'></div>
</nav>
Does anyone know how to solve this problem?