Skip to main content
What are Mobile-first and Desktop-first approaches?
A mobile-first approach to styling means that styles are applied first to mobile devices In mobile-first CSS, the following CSS rules are written first, and then changed in the media query (for desktop). This approach uses min-width media queries. min-width: 600px means // This applies from 600px onwards A desktop-first approach to styling means that styles are applied first to desktop devices In desktop-first CSS, the following CSS rules are written first, and then changed in the media query (for mobile devices). This approach uses max-width media queries. max-width: 600px // Thi
Subscribe to CSS