media query only screen

Solutions on MaxInterview for media query only screen by the best coders in the world

showing results for - "media query only screen"
Daniel
11 Jul 2020
1@media not|only mediatype and (mediafeature and|or|not mediafeature) {
2  CSS-Code;
3}
4
5meaning of the not, only and and keywords:
6
7not: The not keyword inverts the meaning of an entire media query.
8
9only: The only keyword prevents older browsers that do not support media queries with media features from applying the specified styles. It has no effect on modern browsers.
10
11and: The and keyword combines a media feature with a media type or other media features.
12
13They are all optional. However, if you use not or only, you must also specify a media type.