Design comparison
SolutionDesign
Solution retrospective
Hi,
I'm not used to the 'clamp' function. Is it a good practice and use case to use it this way?
.order { width: clamp(350px, 100vw, 22em); margin: 0 auto; background-color: white; border-radius: 1em; }
I want to figure out the optimum width of the main card container; regardless of the viewport.
Thanks!
Community feedback
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