DEV Community

Discussion on: What pains you most in a web development project?

Collapse
 
thesonglessbird profile image
Dan E

Try building for mobile first and adding your media queries for larger screens last. You may find you use fewer media queries that way. If you're using CSS-in-JS or some other CSS preprocessor there are ways to store the media query syntax in variables so your CSS looks neater.