Design comparison
Solution retrospective
Can I put the header and footer tag inside the grid container/wrapper?
Should the div container be a main or div tag with a class main?
If I were to animate the hamburger menu icon using CSS how do I still give it the function to open and close when clicked on?
Any feedback is very much appreciated
Community feedback
- @SheGeeksPosted almost 2 years ago
Nice work on completing this challenge Edoye!
To answer your questions, your
header
should remain outside of the grid container/wrapper andbody
, but your footer should be included withinbody
. Whether you want to include it in the container/wrapper is up to you and the design you wish to achieve, but it's not necessary.You should use
main
instead ofdiv
with a class of main. It's the same thing, but usingmain
is semantically correct and accessible.I suggest searching google for code examples of animated hamburger menus with CSS only because there are many ways to accomplish this. You'll find plenty of code snippets to examine and choose what works best for your code.
Marked as helpful1
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