I want to make div (this will be container). In this div I have navbar and another div (this is background img). My container has 100vh. Navbar doesn't have height. Now I want to make "rest of this 100vh" this background div. My main html looks like:
<!doctype html>
<html lang="pl">
<head>
  <meta charset="utf-8">
</head>
<body>
<div class="head-container">
    <header>
        <img class="logo" src="css/873438.jpg" alt='logo' />
        <nav>
            <ul class="nav_links">
                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Contact</a></li>
            </ul>
        </nav>
            <a class="cta" href="#"><button>Add post</button></a>
    </header>
    <div class="background">
    </div>
</div>
</body>
</html>
And now my CSS file
*{
    margin: 0;
    padding: 0;
}
.head-container{
    height: 100%;
    width: 100%;
}
.background {
    height: 100vh;
    background-color: gray;
}
Background div has 969 px height, like my whole window. I want to make 100vh for whole these 2 divs. What am I doing wrong?
