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

Intro-Section with Dropdown Navigation

Desktop design screenshot for the Intro section with dropdown navigation coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


how do I make the dropdown close again on click. I tried toggle('hidden') but it didn't work any suggestion will be much appreciated. Thank you

Community feedback

@SOULBRODA023

Posted

you can as well create a class in CSS and then tell javascript that when onclick, it should add the classlist hide to the dropdown let's take for instance; After you have created the class, let's say class of "hide"... then you do a dropdown.classList.add("hide").I think that should do the Job. Nice work by the way

Marked as helpful

1

@SOULBRODA023

Posted

Did it work?

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