Result summary component with css and html

Solution retrospective
When using media queries is it better to have them throughout the css file or put them all at the end together?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @aronsn
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 helpful - @accamamuhammad
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.
Join 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