css media queries width max code example

Example 1: media queries css responsive max width

@media only screen and (max-width: size in px) {
  All of your css here
}

Example 2: 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) {...}

Tags:

Css Example