Mobile-first design
noun
say it: “MOH-bul FURST dih-ZYNE” /ˈmoʊbəl fɜːrst dɪˈzaɪn/
Designing a page for phones first, then adding styles for larger screens.
What is mobile-first design?
Mobile-first design means writing the phone layout as the default, then adding media queries for bigger screens.
.menu { flex-direction: column; } /* phones */
@media (min-width: 768px) {
.menu { flex-direction: row; } /* tablets and up */
}
In a sentence
- “Our CSS is mobile-first: one column by default, three from medium screens up.”
Level: Journeyman · More CSS terms at this level
Updated