These are chat archives for FreeCodeCamp/Help
get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
just a quick question regarding the media query.
Somewhere i see the
only screen is included like
@media only screen (min-width: xyz) and (max-width: abc)
and somewhere i dont see the inclusion of
only screen like
@media (min-width: xyz) and (max-width: abc)
is the use of only screen mandatory? or is is optional?
screenmeans its targeting pc, phones, tablets
only screen. There are many instances where this is seen. you may google it..
only screen. isn't it?
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.
only is used to hide media queries from older browser
If you intend to support older browsers then dont use
Build Technical Documentationon Codepen. How do I run the test then?