I am a beginner in html media screen CSS. What is the meaning of this: min and max width in media screen
Asked
Active
Viewed 5,463 times
-1
-
1Please use Google or StackOverflow search. http://stackoverflow.com/questions/13550541/media-min-width-max-width – Andrew Dunai Oct 19 '14 at 13:11
-
http://stackoverflow.com/questions/8549529/what-is-the-difference-between-screen-and-only-screen-in-media-queries – Vitorino fernandes Oct 19 '14 at 13:11
2 Answers
0
Just consider @media (max-width:800px)
.Here you took the width as 800.SO for a window with a max-width of 800px that you want to apply styles.
Now consider @media only screen and (max-width:800px)
According to the w3c explanation.
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.
PLease Have a look here to point out more difference

Community
- 1
- 1

Avinash Babu
- 6,171
- 3
- 21
- 26
0
"only screen" shows on what "device" will this styles (max, min width) apply. See it here - http://www.w3schools.com/css/css_mediatypes.asp
Max-width: 800px says that when the screen is smaller than 800px, the styles in the {} will apply. Min-width is the oposite.

Asen Yakimov
- 11
- 1