Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Blog preview card with 'Fluid Typography'

Maren Ehlers•230
@MarenOelixtown
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

šŸ”Ž I find a way to reduce font size for smaller screens without using media queries. I used 'Fluid Typography' with the clamp() function that ensures that the font size stays within a specified range. This technique allows the font size to be flexible and adaptive across different screen sizes while still staying within defined limits.

āœŒļø I also uses a responsive layout for the card-section. In this case, the width of an element is dynamically adjusted based on the viewport width while staying within a specified range: This technique combines fixed and flexible dimensions.

What challenges did you encounter, and how did you overcome them?

I wanted to find out the best way to write semantic HTML, so I looked in the mdn web docs https://developer.mozilla.org/en-US/docs/Web/HTML to find the most useful structure.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Maren Ehlers's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
Ā© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License