Max font size using calc

Hi,
How do I set a headline font size to have a maximum using calc?

I am currently using: calc(2.5vw + 1em) which works but it continues to get larger and larger and I want to be able to have a max value so it doesn’t not continue to increase in size and stops at a prescribed maximum size.

Hello @cmelnik,

Thanks for writing in!

You can use min(), max() or the clamp() CSS functions in your font size. Kindly check this out:

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.