Struggling to hide a specific element when the screen width reaches 980px or less using media queries. Despite my attempts, the element continues to display.
Oddly enough, if I use a media query with min-width instead of max-width, the element disappears as expected. What could be causing this discrepancy?
@media (max-width: 980px) {
.welcome-msg {
display:none;
}
}
Is there something obvious that I'm missing in my code? Currently testing in Firefox's responsive design view.