Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I am proud to solve this solution , but will try to understand the grid layout more in order to save me time working on similar projects
What challenges did you encounter, and how did you overcome them?Grid layout with tailwind was challenging but managed to solve by reading their docs.
What specific areas of your project would you like help with?I would like help on how to overlay the main tag content when a user clicks the navbar toggle
Community feedback
- @kodan96Posted 6 months ago
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 helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord