davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.75k stars 1.39k forks source link

Text within an position: absolute; element must have width specified! #70

Closed wlanni closed 11 years ago

wlanni commented 11 years ago

Please add this to the documentation:

If your text element is a child of an absolute positioned element, it does NOT have dimension. This is alluded to in the documentation. However, it would save someone like me a lot of time if a sub-note is made that in order for FitText to work on a child element of an absolute positioned element (and possibly on an element that is positioned absolute), a width % must be applied to to the element to calculate it's initial font-size.