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 // This applies from 0px to 600px

Add new comment

Restricted HTML

  • You can use shortcode for block builder module. You can visit admin/structure/gavias_blockbuilder and get shortcode, sample [gbb name="page_home_1"].
  • You can use shortcode for block builder module. You can visit admin/structure/gavias_blockbuilder and get shortcode, sample [gbb name="page_home_1"].