davatron5000 / FitText.js

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

Text highlight (aka Text background) #104

Closed nilsmedina closed 10 years ago

nilsmedina commented 10 years ago

Using Fittext, is there any way to 'highlight' text (eg : background-color: ###) without having the background span the entire container (but rather fitting the text)?

Thanks for the plugin, it's a lot of fun!

EDIT: Using display: 'inline-block'; gives me the result I was expecting but if I resize the window (even decreasing), everything goes huge.

TrentWalton commented 10 years ago

Hi, could you please check: https://github.com/davatron5000/FitText.js/blob/master/CONTRIBUTING.md

nilsmedina commented 10 years ago

sorry I tried to make a fiddle without success for some reason. Will try to get back to it when I have time. I ended up giving up on the background.

TrentWalton commented 10 years ago

Sounds good! THanks!