Design comparison
Solution retrospective
Not much
What challenges did you encounter, and how did you overcome them?The spacing between the elements in the card was a bit annoying to fix.
I used justify-content: space-between to fix it.
What specific areas of your project would you like help with?The challenge asks to make the font size decrease for mobile phones without using media queries, I think it is done using vw
but then when the size of the viewport increases the font-size becomes too big.
Community feedback
- @kodan96Posted 7 months ago
hi there! ๐
For these situations, when you want your
font-size
to dynamically change based on certain value you can use theclamp
function.the syntax is:
font-size: clamp(min-size, preffered-size, max-size);
replace the variables in the parentheses with actual values.
this will keep your
font-size
between min-size and max-sizeHope this helps ๐
Good luck and happy coding! ๐ช
Marked as helpful2
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