Cal9233 / Redux-Assignment

0 stars 0 forks source link

Question 2: What is the syntax for a media query? #1

Open radika-insfra opened 1 year ago

radika-insfra commented 1 year ago

Your answer : @media only screen and (min/max-width: ${number}px)


We don't need to use the only or screen. those are media types and conditions. therefore simply the syntax for a media query is

@media (max/max-width: 600px) { / CSS rules here / }. (Not only min/max width there are more)


Cal-Ell commented 1 year ago

An example of syntax for media query is

@media (max/max-width: 600px){ }