3

I'm looking for a method, using jQuery, to change the font size in a form input field so that no matter how much the user types, it is always visible and fits. In other words, to start with a font size of 13px and when the text reaches the width of the input field, the font size progressively gets smaller to accommodate.

I've found many methods of resizing the field itself, but not the text. Hopefully one of you who know jQuery better than I can help out.

Thanks!

1
  • Take a look at the fittext plugin. It might have some answers to this problem: fittextjs.com Commented Jul 3, 2011 at 18:18

1 Answer 1

4

https://github.com/vxsx/jquery.inputfit.js

Sign up to request clarification or add additional context in comments.

1 Comment

I will take a look at that and let you know how it works. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.