Design comparison
Solution retrospective
There was this mention about setting font size without media queries, I am not sure how to do that. I tried googling for a few minutes and I didnt find anything that would fit this case, where on small screens you want 12px and on bigger screen 14px for example.
Community feedback
- @ARiYaNSEp0-0Posted 3 months ago
Hello @wall-69, you did really good job on this challenge. there are many ways but one straightforward approach is using clamp() function in css basically this function takes three inputs (arguments) first one is minimum length value, second or middle is prefered value and last value is maximum value so if you want 12 on mobile and 14 on desktop you could write clamp(12px, 3vw, 14px) you can read more about this on : https://developer.mozilla.org/en-US/docs/Web/CSS/clamp
Marked as helpful1
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