The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Is it possible to adapt font size to div width?
Anyone? I created a fiddle (had problems on codepen)
http://jsfiddle.net/UwarH/
[http://jsfiddle.net/UwarH/115/](http://jsfiddle.net/UwarH/115/ “jsfiddle”)
Here’s the best code i’ve come across up to date while working on sportkin I found the following to be very useful as it works well in Ie too
http://www.dhtmlgoodies.com/?whichScript=text_fit_in_box
Awesome topic and thank you for the great tips.
Give this a try if you already use jQuery:
http://thdoan.github.io/scalem/
What a silly ‘contribution’ to this random JavaScript thread.
In case anyone wonders….this was in response to a troll post that’s no longer there.