I have tab elements with either display: inline
or none
depending if they are selected. Eg:
<div class="tab" style="display:inline;"></div>
<div class="tab" style="display:none;"></div>
Then a class in my stylesheet overrides the display property so that all tabs are shown in mobile devices:
.tab {
display: block !important;
}
My problem is that I need to prevent this condition to apply to screen bigger than 600px but I cannot use max-width queries. So I need to override display: block !important
with a min-width media query without applying any other particular style. Eg:
@media screen and (min-width: 600px){
.tab {
display: /*don't do anything*/ !important;
}
}