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

Responsive News Landing Page

@Miki0035

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


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

P
Koda👹 3,810

@kodan96

Posted

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

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