Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

news homepage solution using flex, grid and JS

@bherna24

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


How to dim images in background when the menu is opened?

Community feedback

Eren 210

@for-dev9

Posted

  1. add modal div --> <div id="modal" class="modal"></div>
  2. 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);
  3. update your menu stylesheet z-index to 2
  4. Call JS function to show modal div -- > document.getElementById('modal').style.display = 'block';

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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