I'm using flexbox to center vertically and horizontally the text in my header which is full screen. However I also want to have navigation and some logo in there, but of course these two go to the middle.
How do I fix this so I can have my nav and logo on top and the text in the middle with flexbox?
Here's my code:
HTML:
<header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
<h2>Template</h2>
<h1>Welcome to my page</h1>
<a href="#">Learn More</a>
</header>
CSS:
header {
height: 100vh;
background: url(img/showcase.jpg) center center;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
}
Thanks in advance.