Get a free trial // Grow your CSS skills // Land your dream job

Is it possible to adapt font size to div width?

  • # October 17, 2012 at 11:40 am

    Anyone? I created a fiddle (had problems on codepen)

    # February 15, 2013 at 3:50 pm

    []( “jsfiddle”)

    # May 1, 2013 at 10:03 am

    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

    # May 22, 2013 at 3:38 pm

    Awesome topic and thank you for the great tips.

    # September 2, 2015 at 12:17 am

    Give this a try if you already use jQuery:

    # September 3, 2015 at 6:09 am

    What a silly ‘contribution’ to this random JavaScript thread.

    # September 3, 2015 at 6:42 am

    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.

    # September 3, 2015 at 7:26 am

    I wouldn’t have minded my post being removed along with the trolling (just so you know for any such hopefully not further occurring occasions).

    Anyway, now I felt compelled to have a minor go at this as well :

    Especially since some earlier working code seems to be AWOL.

Viewing 8 posts - 16 through 23 (of 23 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed