Cal9233 / Redux-Assignment

0 stars 0 forks source link

Question 9: What is the purpose of the only keyword in a media query? #4

Open radika-insfra opened 1 year ago

radika-insfra commented 1 year ago

Your answer : Different browsers might see screen, color and other properties as screen media type


The only keyword is used to specify that a media query should only apply to the specified media type, and not to any other media types. For example,@media only screen { /* CSS rules here */ } targets screens only, and not print media or speech media.


Cal-Ell commented 1 year ago

If you want to apply styling to a specific media type you would use the "only" condition compared to just @media.