Design comparison
Solution retrospective
most proud of what I learned :
- To make the font size responsive to device size, you can use a combination of calc(), vw, and rem units.
html { font-size: calc(14px + 0.3vw); } .text-preset1 { font-size: 1.5rem; font-weight: 700; } .text-preset2 { font-size: 1rem; }
I would do differently next time:
- use Tailwind to speed up the layout process and work with React to become more familiar with the framework.
I spent a lot of time trying to figure out how to make the font size responsive without using media queries. After searching for solutions online and consulting two AI models, ChatGPT and Claude, I finally came up with a solution. I used a combination of calc(), vw, and rem units to achieve the desired responsive effect for the font size.
What specific areas of your project would you like help with?As soon as I received the project, I immediately started coding with HTML and CSS without considering the option of using frameworks or libraries. How should I adjust the project structure next time if I want to use the React framework and Tailwind? Note: I have learned React in class, but I haven't used Tailwind before. I have used Bootstrap.
Community feedback
- @MikDra1Posted 3 months ago
Here is a tip from me. If you want to make your font-size responsive without using media queries I highly encourage you to learn about the clamp function. If you haven't heard about it here is a VIDEO about it.
Hope this comment was helpful 💗
Good job and keep going 😁😊😉
Marked as helpful1@yyuntzpanPosted 2 months agoThank you so much!
Thanks to you, I learned about the clamp function. It's an awesome method and has helped me a lot. I really appreciate it!
0
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