Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
js
 
 
 
 
 
 

README.md

textfit.js

jQuery plugin to make text fit it's container.

How it works

First I append a div around the inner text. Then, I can compare the ratio between the text width, and the container width. Finally, I use that ratio to set the font size. Easy peazy.

Setup & options

Check out the demo here.

About

jQuery plugin to make text fit it's container.

Resources

Releases

No releases published
You can’t perform that action at this time.