I can not set site menu and header [closed]

2

I'm trying to set the menu and header of the site, but I can not !! I managed to put it online if you can check it out: link

As you can see, when using the mouse scroll, the menu goes down, the logo does not go down nor the header !!

Could you help me?

    
asked by anonymous 29.11.2015 / 04:19

1 answer

0

In your css apply these properties to your header:

header {
    position:fixed; //deixa o elemento fixo na pagina
    top:0; //diz qual distância do topo ele ficará fixado, nesse caso, uma distância igual a zero.
    z-index:999; //aplica o nível de profundidade (camadas) do elemento, quanto maior, mais para "cima" na dimensão 'Z' ele vai ficar
}

Do not forget that after this you will probably need to put a margin on your nav, as it will be "underneath" the menu.

    
29.11.2015 / 10:41