The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Automatically re-size text to fit parent div

  • Anonymous
    # June 19, 2013 at 3:50 pm

    I’m looking for some sort of plug-in or anything really that can automatically shrink the text when the div space isn’t enough to display the text in a single line. And enlarge he text when there is plenty of space.

    # June 19, 2013 at 3:53 pm

    # June 19, 2013 at 3:58 pm

    @AlenAbdula i actually ran into that before but isn’t it only for very large text? Also it was hard for me to implement.

    # June 19, 2013 at 4:03 pm

    It’s for headlines, you said you need it for “display text in single line”… sounds like a headline…

    # June 19, 2013 at 4:08 pm

    Its actually for this. In the contact us section the four tabs on the left. the “TEXT” should resize to fit the parent div. i’m not using headings. but span.

    # June 19, 2013 at 4:11 pm

    The plugin can be applied to anything, it’s just not recommended for paragraphs.

    # June 19, 2013 at 4:18 pm

    Okay great. Ill try implementing it. Thank you.

    # June 19, 2013 at 5:11 pm

    @AlenAbdula i implemented the plug-in but all it does is make the text disappear. I applied it to the “Hit Us Up” heading and it worked perfectly, but not when i apply it to the text within the wrappers.

Viewing 8 posts - 1 through 8 (of 8 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