Media queries in Zurb Foundation

Now we’ve leart media query. Let’s take a look on how Foundation define the media queries into break points for small, medium and large screens.

 1// Small screens
 2@media only screen { } /* Define mobile styles */
 3
 4@media only screen and (max-width: 40em) { } /* max-width 640px, mobile-only styles, use when QAing mobile issues */
 5
 6// Medium screens
 7@media only screen and (min-width: 40.063em) { } /* min-width 641px, medium screens */
 8
 9@media only screen and (min-width: 40.063em) and (max-width: 64em) { } /* min-width 641px and max-width 1024px, use when QAing tablet-only issues */
10
11// Large screens
12@media only screen and (min-width: 64.063em) { } /* min-width 1025px, large screens */
13
14@media only screen and (min-width: 64.063em) and (max-width: 90em) { } /* min-width 1025px and max-width 1440px, use when QAing large screen-only issues */
15
16// XLarge screens
17@media only screen and (min-width: 90.063em) { } /* min-width 1441px, xlarge screens */
18
19@media only screen and (min-width: 90.063em) and (max-width: 120em) { } /* min-width 1441px and max-width 1920px, use when QAing xlarge screen-only issues */
20
21// XXLarge screens
22@media only screen and (min-width: 120.063em) { } /* min-width 1921px, xxlarge screens */

What’s next? We’re going to take a look at “Chapter 5 – CSS preprocessing”.

overlaied image when clicked on thumbnail

Makzan | Mobile web design | Table of Content