
Solution retrospective
This solution uses no JS, instead going for a pure CSS mobile menu. The drawback is that it uses :has, which is unsupported by Firefox. I did not craft a fallback for Firefox.
There is only one breakpoint (at 1024px) for responsiveness. Basically, it toggles between a desktop/tablet view and a mobile/small tablet view.
Fun project.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Steven Jarvis's solution.
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