FitText makes font-sizes flexible. Use this plugin on your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element. Oh, and don't you dare let us catch you using FitText on paragraph text. This is for gigantic display text only! Your text should now fluidly resize, by default: Font-size = 1/10th of the element's width. If your text is resizing poorly, you'll want to turn tweak up/down "The Compressor". It works a little like a guitar amp. The default is 1. This will hopefully give you a level of "control" that might not be pixel perfect, but resizes smoothly & nicely. FitText now allows you to specify two optional pixel values: minFontSize and maxFontSize. Great for situations when you want to preserve hierarchy. Run FitText before anything that hides the element you're trying to size (e.g. before Carousels, Scrollers, Accordions, Tabs, etc). Hiding an element's container removes its width. It can't resize without a width.
Features
- FitText makes font-sizes flexible
- Tweak until you like it
- Set a No-JS fallback font-size in your CSS
- Supported in all major browsers
- minFontSize & maxFontSize
- Ratio-based resizing of your headlines