I have implemented media queries in my code to hide the .sideBar when the screen resolution is less than 768px, showing only the .main section.
@media (max-width: 768px) {
.sideBar {
display: none !important;
}
}
Now, I want to add a hamburger icon that will toggle open/close the .sideBar when the screen resolution is like this.
Can anyone help me with the code for achieving this?
If there are any tutorials related to this topic, please provide the links.
Find attached the original code snippet:
/* Copyright (c) myEd (made by students, for students.) 2018. */
body { /* General Body Properties */
font-family: Trebuchet MS, Georgia, Helvetica, sans-serif;
margin: 0;
overflow: hidden;
}
...
Thank you, Tom