Why is the header section so far up than it should be when I justify-content?
When I set justify content of the header__container to space around, the header starts to go way up beyond its margin. Please help.
header {
height: calc(100vh - 80px);
}
.header__container {
width: 100%;
max-width: 720px;
margin: 0 auto;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
<header>
<div class="header__container">
<div class="header__description">
<h1>Lebanon's most awarded online library platform</h1>
<h2>Find your dream book with <span class="purple">Library</span></h2>
</div>
<figure class="header__img--wrapper">
<img src="https://via.placeholder.com/200" alt="">
</figure>
</div>
</header>