Blog Preview Card (Resizing Fonts without using Media Queries)

Solution retrospective
Proud that I got to solve font-size
resizing using a formula with the use of the calc()
function
Had a hard time coming up with the formula. Honestly, had to use an AI tool to simulate through a table of different viewport widths to figure out a formula to get a specific font-size
at a specific viewport-width
I would like help if I made the right call using calc()? What is/are the alternative without usng media queries? or is/are there any?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Tasin269
So I have seen your code and I couldn't figure out how are you calculating the font-size😅. I'm not a pro but I generally use rem along media queries to change the font-size of all texts in a single go for different viewport sizes. Also I don't think we need to setup font-size for every width.
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