Submitted almost 2 years ago
news homepage solution using flex, grid and JS
@bherna24
Design comparison
SolutionDesign
Solution retrospective
How to dim images in background when the menu is opened?
Community feedback
- @for-dev9Posted almost 2 years ago
- add modal div --> <div id="modal" class="modal"></div>
- set modal stylesheet --> display: none; position: fixed; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);
- update your menu stylesheet z-index to 2
- Call JS function to show modal div -- > document.getElementById('modal').style.display = 'block';
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