Answer the question
In order to leave comments, you need to log in
CSS media queries: screen or only screen?
I see in sass frameworks, media queries are written like this: media only screen... I always wrote just media screen... and everything seemed to be fine. Is there any difference in result between "screen" and "only screen"?
Answer the question
In order to leave comments, you need to log in
The only statement is used to hide styles from older browsers (supporting CSS2 media query syntax ).
@media only screen and (min-width: 401px) and (max-width: 600px) {
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question