Open utterances-bot opened 3 years ago
As pointed out by u/Rhym on Reddit there's also a way of implementing this with SASS. https://css-tricks.com/snippets/css/fluid-typography/ You can check it out and see if it fits your requirements
Further optimizations need to be done for this to be production ready. As mentioned by u/wickning 1 a binary search could be implemented for finding the correct font-size. Thanks for pointing it out 😄
How to Auto Adjust Font Size to fit div
https://gabriellazcano.com/blog/how-to-auto-adjust-font-size-to-fit-div/