Closed scorpio1441 closed 12 years ago
HTML:
<form> <label for='address'>Search by address</label> <input name='address' id='search-address' autocomplete='off'> </form>
<form>
<label for='address'>Search by address</label>
<input name='address' id='search-address' autocomplete='off'>
</form>
JS: $('#search label').fitText(1);
$('#search label').fitText(1);
If you set the Label to display:block or display: inline-block does that work? Inline-elements might not have a proper width.
display:block
display: inline-block
Beyond that I'd have to see a CodePen.
HTML:
<form>
<label for='address'>Search by address</label>
<input name='address' id='search-address' autocomplete='off'>
</form>
JS:
$('#search label').fitText(1);