Design comparison
SolutionDesign
Solution retrospective
A short and enjoyable little challenge!
Community feedback
- @DigitaleWeltLibraryPosted 12 months ago
Hey, good soulution.
If you use
min
you can pass multiple values and the smaller one is always taken. The unitdvw
is dynamic and indicates the width of the browser. So it's90dvw
from the screen. If this is larger than310px
, thepx
will be taken. Alternatively, you could give the card amargin
on the mobile version..main-card { width: min(310px,90dvw); }
Happy Coding 😉
Marked as helpful0@yozidstPosted 12 months ago@DigitaleWeltLibrary Thanks for the tip! I'll apply it to coming challenges.
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