Design comparison
SolutionDesign
Solution retrospective
I'm used react because I am trying to challenge myself. I know its not perfect. But for some reason, I could not get the font-weight to work. If you know what's wrong please leave me a comment.
Community feedback
- @higormarquesPosted over 4 years ago
Hi, ttran247!
Your code is careless about the mobile version, you should think in mobile-first every time that you are developing a responsive web page.
You had set all to be applied only after 480px breakpoint, but we have a lot of mobile phones running with a 320px screen.
the best approach to deal with it is:
/* style.css */ /* mobile first */ .some-class { ... } /* tablet */ @media screen and (min-width: 768px) { .some-class { ... } } /* small desktop */ @media screen and (min-width: 1024px) { .some-class { ... } } /* desktop */ @media screen and (min-width: 1366px) { .some-class { ... } }
Best regards.
1
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