The Poor Man’s FitText – JavaScript Text Size Adjustment
Dave Rupert’s FitText is a great tool for inflating or deflating type for responsiveness. I do find, however that it’s a bit finicky for certain cases, particularly if you want your text to fill the width of the space completely regardless of height. For a recent project, I wrote this script, which does exactly that by looping through the container’s width, checking it against the parent and adding to (or subtracting from) the font size until the container’s width matches the parent minus an offset.
The script currently uses jQuery, because I was already using it on the project. I will likely add a vanilla JS version in the near future.
The script requires that the container element be set to display:inline or inline-block.
See this Gist for the code. Instructions on how to implement it are in the file’s comments.
diflucan 125mg diflucan where to buy uk
https://withoutprescription.store/# the canadian drugstore
ciprofloxacin ciprofloxacin 500 mg tablet price
diflucan 6 tabs diflucan 150 capsule
https://withoutprescription.store/# legal to buy prescription drugs without prescription
best online canadian pharmacy ed meds online without doctor prescription
lasix generic name lasix furosemide
https://buynolvadex.store/# liquid tamoxifen
ivermectin cream 5% minocycline 50mg tablets for human minocycline for acne
kamagra stockholm generic kamagra review al maximo kamagra
cialis without prescription
gabapentin for cats
plaquenil and sun
azithromycin 500
gabapentin for dogs side effects
furosemide dosage in heart failure
buy priligy 30mg
viagra pfizer buy online
Viagra
Cialis
Propecia
https://prednisonebuyon.com/ – buy prednisone for dogs without perscription
http://buyplaquenilcv.com/ – Plaquenil
order z pack
http://buypriligyhop.com/ – dapoxetina generico
what is plaquenil used for
http://buylasixshop.com/ – Lasix
https://buyzithromaxinf.com/ – Zithromax
viagra price on street
http://buytadalafshop.com/ – Cialis
Propecia
Stromectol
http://buystromectolon.com/ – stromectol
Cialis
https://buypropeciaon.com/ – finasteride, msd
https://buysildenshop.com/ – Viagra