Grokking CSS for Web Development
Vote

0% completed

​

Mobile-First Approach

When a page has one layout for phones and another for laptops, which of the two should the plain CSS describe, outside any media query? Either choice works, but they lead to different code. Writing the plain rules for the smallest screen and adding media queries for larger screens is called the mobile-first approach. Writing them for the desktop and adding queries for smaller screens is called desktop-first.

The Same Layout, Written Two Ways

The previous lesson stacked the two text columns with a max-width query

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content