Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog preview card using flexbox and clamp()

Nikola 190

@porumbachanov

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

Dunno.

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

Wasn't sure at first how to make the responsive design of the text without media queries, then I found out about the clamp() function and implemented it for the card as well.

What specific areas of your project would you like help with?

Any remarks are welcome!

Community feedback

Alex 3,130

@Alex-Archer-I

Posted

Hi! Very cool find =) I struggled with this task too and ended up with calc(0.9rem + 0.1vw), but clamp() seems better as it maintain max value as well.

Great work at all =)

1

Nikola 190

@porumbachanov

Posted

@Alex-Archer-I Thanks! At first I played around with calc() too and tried to eyeball the size, but I wanted to have a max value as well because it stretches too much and looks weird. clamp() made things easier and did exactly what I wanted :D.

1
Alex 3,130

@Alex-Archer-I

Posted

@Vrondir It even can take a calc() as one of parameters! Very flexible function =)

1

Please log in to post a comment

Log in with GitHub
Discord logo

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