Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Result summary component with css and html

Nic 30

@MonstersInc-sudo

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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

@aronsn

Posted

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

0

@accamamuhammad

Posted

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 GitHub
Discord logo

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