Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Using clamp
to change the width and the padding of the card.
Find the correct values for the clamp
. I finally used an online calculator to find the desired values.
In the example given, the height of the card decreases for the mobile version. In my case I haven't touched the height, but being able to modify the different spaces fluidly and manage everything with variables interests me.
Join 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