hi there! 👋
You can create an empty div for that and make it take up the entire screen, then hide it and use js to toggle it as the menu icons are clicked:
**HTML**
<div class="overlay"></div>
**CSS**
.overlay {
position: fixed;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, .4);
display: none;
z-index: 100;
}
make sure you give the nav and the toggle icon higher z-index
Hope this was helpful 🙏
Good luck and happy coding! 💪
Marked as helpful