Css issues
Jotting down something's on css like how to make the navbar hamburger button clickable,
Is it a good way of learning
I was given a project to build that's why I am asking
Is not that I can't code navbar I can make a nav menu to hide on small screen but making it clickable is the issue
Is it a good way of learning
2 Replies
Making a non-interactive element interactive is what JavaScript is for, not something you should do purely through CSS.
You put an event listener on the button element to trigger the action you want. One way people show and hide a nav menu is by putting a class on which moves it out of view or hides it, then toggling it with javascript.
As for a good way of learning, yes, projects like this will help you learn.
Thanks sir 🙂
And also have a book for each project I built