Open radika-insfra opened 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)
An example of syntax for media query is
@media (max/max-width: 600px){ }
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)