My initial site has an html start:
<header class="headd">
<div id="divcentral">
<a href="index.html" id="linklogocentral"><img src="img/logo.png" id="logocentral"></a>
<h1 id="titulo">Lukas Monteiro</h1>
<h2 id="subtitulo">Bem vindo</h2>
<a href="#meuMenu" id="linksetabaixo" class="scroll"><img src="botao/setabaixo.png" id="setabaixo"></a>
</div>
</header>
and in css I put:
header {
width: 100%;
height: 100%;
background-image: url(../img/backgroundheader1.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
#divcentral {
width: 407px;
height: 500px;
margin: auto;
padding-top: 200px;
text-align: center;
}
So that the initial part of the site will occupy 100% on any screen size. However, when I expands the screen (raise the screen I am) to central div goes up a bit, misaligning what is to be in the middle.
Maximizedon-screenphoto
How do I leave the div exactly in the middle on any screen size? I still can not do this. When I make a site in my notebook, and open it on a computer, everything is out of place (usually it's high) since on the sides I always center or set the left margin in%.