DEV Community

Discussion on: Responsive fonts using css clamp()

 
mattc profile image
Matthew Claffey

I would say to set your viewport width to be based on this

Calc(max-font-size / container-width * 100vw)

Then when the browser size is the container width, the font size will be set at the maximum size. As the screen goes smaller it will shrink until it reaches the minimum value.

Thread Thread
 
uzair004 profile image
Muhammad Uzair

Alright, Thanks 🙌