Design comparison
SolutionDesign
Solution retrospective
Hi everyone,
I would appreciate it if you could have a look at my code, especially on the responsive part. I set max-width to 375px and expected it to be changing with the width of the phone, but it's not. Could you give me some tips on how to fix this problem?
Thank you
Klara
Community feedback
- @Fola-JoePosted about 2 years ago
Nice work here! I love it! I would recommend working on a mobile-first workflow before working on the media query for larger screen sizes. So I'd suggest setting
.card {max-width: 375px;}
and in your media query(min-width: 376px)
, you could increase the max-width. I hope this helps.Marked as helpful0
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