What is the difference between screen only and screen in css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between screen only and screen in css?

15th May 2020, 5:17 AM
Romjan Ali
Romjan Ali - avatar
3 Answers
+ 4
screen is against print or other media type, list: https://www.w3.org/TR/CSS2/media.html only is used to prevent older browsers that do not support media queries with media features from applying the specified styles. https://www.google.com/amp/s/www.geeksforgeeks.org/what-is-the-difference-between-screen-and-only-screen-in-media-queries/amp/ The keyword ‘only’ can also be used to hide style sheets from older user agents. User agents must process media queries starting with ‘only’ as if the ‘only’ keyword was not present. https://stackoverflow.com/questions/8549529/what-is-the-difference-between-screen-and-only-screen-in-media-queries not screen only is only screen only must be before screen
15th May 2020, 5:38 AM
Gordon
Gordon - avatar
0
about media query?
15th May 2020, 5:20 AM
Gordon
Gordon - avatar
0
yes, it's about media query
15th May 2020, 5:22 AM
Romjan Ali
Romjan Ali - avatar