-1
* { margin: 0; padding: 0; }
nav {
position: fixed;
width: 100%;
height: 70px;
background: blue;
z-index: 999;
}
header {
width: 100%;
height: 500px;
background: red;
}
<nav>Menu</nav>
<header>imagem</header>
If you don’t want to leave the menu fixed at the top, take the position.
Please also enter the code of your CSS file so we can help. Probably, the problem is related to the attribute
z-index
from your menu.– andreybleme
Without the code it is difficult... try to give a margin-top:0; padding-top:0; and add a position to it, and when added make a top: 0
– Anderson Henrique
Enter your HTML/CSS code!!
– Gilmar Santos