My hamburger menu is fully functional using CSS alone. However, when the menu opens, it doesn't fill the entire screen as I would like. Currently, my page content appears below the open menu, creating a cluttered look.
https://i.sstatic.net/EtTsr.png
What I want to achieve is this:
https://i.sstatic.net/OtZWw.png
I attempted to address this issue by applying min-height: 100vh
to various classes within my CSS code.
.header {
overflow: hidden;
width: 100%;
z-index: 3;
background-color: #202124;
}
.header ul {
margin: 0;
padding: 0;
list-style: none;
}
.header li {
color: #ffffff;
font-weight: 700;
font-size: 22px;
}
(header styles continue...)
<header class="header">
<a href="/" class="logo"><span class="logo-yellow">L</span><span class="logo-green">K</span></a>
<input class="menu-btn" type="checkbox" id="menu-btn">
<label class="menu-icon" for="menu-btn"><span class="nav-icon"></span></label>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Browse</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</header>