Answers for "responsive media queries min and max width"

29

media query min and max

/* Max-width */
@media only screen and (max-width: 600px)  {...}

/* Min-width */
@media only screen and (min-width: 600px)  {...}

/* Combining media query expressions */
@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Posted by: Guest on December-06-2019
1

media query for mobile min and max width both

@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Posted by: Guest on July-15-2021
1

what is a max and min width media query

/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px)  {...}

/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}
Posted by: Guest on December-21-2020

Code answers related to "responsive media queries min and max width"

Browse Popular Code Answers by Language