responsive using less media queries

Please log in to post a comment
Log in with GitHubCommunity feedback
- @katherin467
Nice job! I can see that it's responsive for different screen sizes, including the font size (where you used clamp). It looks like your solution is smaller than the goal design, but the structure is all there.
Marked as helpful - @akri-dev
try using calc() to scale/resize fonts and width & height. It'll be smoother
calc(20px + (4 * ((100vw - 375px) / (1440 - 375))))
my min-width is 375px
my max-width is 1440px
for min-width, my target font would be 20px
for max-width, my target font would be 24px
Marked as helpful - @Eng-Natole
I noticed you used a Google Font in your project, which was provided in the file. Could you share why you chose to link to a Google Font instead of using a system font? I’m curious about your reasoning behind that choice other wise your code is amazing
Marked as helpful
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