The image is getting below the menu

Asked

Viewed 81 times

-1

The image is not getting...well positioned. What do I do ? You have this blank. It’s for her....

inserir a descrição da imagem aqui

  • 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.

  • 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

  • Enter your HTML/CSS code!!

1 answer

0

* { 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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.