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 | TailwindCSS

Wall_ 30

@wall-69

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 specific areas of your project would you like help with?

There was this mention about setting font size without media queries, I am not sure how to do that. I tried googling for a few minutes and I didnt find anything that would fit this case, where on small screens you want 12px and on bigger screen 14px for example.

Community feedback

@ARiYaNSEp0-0

Posted

Hello @wall-69, you did really good job on this challenge. there are many ways but one straightforward approach is using clamp() function in css basically this function takes three inputs (arguments) first one is minimum length value, second or middle is prefered value and last value is maximum value so if you want 12 on mobile and 14 on desktop you could write clamp(12px, 3vw, 14px) you can read more about this on : https://developer.mozilla.org/en-US/docs/Web/CSS/clamp

Marked as helpful

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