What are the most common CSS tricks for media queries?

The most common approach in using media-query, which is also strategic, is abiding by the Mobile First principle.

  • Begin your non-media queried style for mobile
  • Add a media query for the next viewport size you’re designing for. For example, tablet size then desktop size

I mentioned strategic because it also tackles the concept of Less Is More or in other words, decluttering or prioritizing.


Originally published in Quora


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *