CSS alone won't cater for this. You're after Fittext.js: http://fittextjs.com/
Creating a variable-sized justified text block
-
10-07-2023 - |
Question
I need to create a block of text that looks like this:
Is there a term for this kind of variable-sized justified text? Is there a JavaScript library to size this correctly, or is it possible in CSS?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow