Design comparison
Solution retrospective
When using media queries is it better to have them throughout the css file or put them all at the end together?
Community feedback
- @aronsnPosted 10 months ago
Depends on how you have structured your styling. When styling a page it is common to follow mobile-first design, and usually when your page/app is mobile-first, you put all media queries in the bottom of the css file in with all the the break points in an ascending order.
Marked as helpful0 - @accamamuhammadPosted 10 months ago
Nice design, it seems like someone has alreadt answered the question, but when your going for a laptop-first design you should put all the media queries in descending order but when your going for a mobile-first design you should put all the media queries in ascending order.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord