So I have a navbar with several links inside of it. If the width of the screen gets too small, all of those links disappear and a hamburger menu icon appears, which is also a link, but it has the class "hamburger". How would I make a selector in CSS that would select all of the links except from that hamburger menu link?
Here is my CSS:
@media only screen and (min-width: 601px) {
/* hide the hamburger */
.hamburger {
display: none;
}
/* show all the nav-buttons */
.navbar a {
display: block;
}
}
/* if browser window is small (max-width) */
@media only screen and (max-width: 600px) {
/* show everything with the hamburger class */
.hamburger {
display: block;
}
/* hide all the nav-buttons */
.navbar a {
display: none;
}
}