How can I hide an element with the ".nav__btn" class by setting its display to none
when the screen width is at least 768px
? I tried the following media code but it doesn't work.
Media Code
@media (min-width: 768px) {
.nav__btn {
display: none;
}
}
Styles Code
.nav__btn {
width: 5.5rem;
height: 5.5rem;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
border-radius: 2.2rem;
cursor: pointer;
}
I still want the ".nav__btn" class to have its display set to none.