davatron5000 / FitText.js

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

fitText does NOT work for <label> #40

Closed scorpio1441 closed 12 years ago

scorpio1441 commented 12 years ago

HTML:

<form> <label for='address'>Search by address</label> <input name='address' id='search-address' autocomplete='off'> </form>

JS: $('#search label').fitText(1);

davatron5000 commented 12 years ago

If you set the Label to display:block or display: inline-block does that work? Inline-elements might not have a proper width.

Beyond that I'd have to see a CodePen.