2
Hello, everyone. I created a header with 100% screen size (independent of screen size) like this:
header {
background-image: url('img/background.jpg');
height: 100vh;
width: 100%;
}
<header>
<div class="texto-header">
<h1>Nova Zelândia</h1>
<p>Um paraiso do outro lado do mundo.</p>
</div>
</header>
I need my text to be in the center of this header (horizontal and vertical).
Dude, something didn’t work out. The text was in the middle of the page, but it wasn’t exactly in the middle, you know? It was kind of aligned to the left.
– Vinicius Martins
I made a small change, look now.
– Sam
Now it worked. I believe that a menu I had made here also messed up, hehe. Thank you very much, =).
– Vinicius Martins