Design comparison
Solution retrospective
Still not confident about how I use CSS. I feel like my code has a lot of unnecessary input.
-
Can my CSS be more efficient and clean?
-
Is there a set breakpoint for responsive media query?
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Kurt, congratulations for your solution!
Answering your question:
These values
Mobile: 375px / Desktop: 1440px
are not necessarily when you should set the breakpoints for the media query, are the resolutions which that design were created. The right moment you should set a media query is when the content is not fitting the screen, for example, you've set the media query vertically in circa1000px
but your component horizontally could works for longer since the cards are responsive... my advice for you is to set this media query a little bit later or let the card content grow more when its mobile, note that theres a huge lateral gap for the mobile version.Hope it helps and happy coding
0 - @HatimHJPosted over 2 years ago
congratulations on finish the challenge
Is there a set breakpoint for responsive media query?
- Mobile: 375px
- Desktop: 1440px
when you code you should start with mobile then you adjust for desktop. this how i do it and it work ok for me
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