FitText.js icon indicating copy to clipboard operation
FitText.js copied to clipboard

FitText on bootstrap navbar links

Open savgiannis opened this issue 6 years ago • 2 comments

Hi, I tried to implement fit text in bootstrap navbar links so the font size is different on xl, lg, and even on sm screens when it collapses so i will not have to add media queries but it does not work it always keeps the max size. Any help ? Thanks

savgiannis avatar Oct 18 '17 10:10 savgiannis

Hi! You might start by building a reduced test case on a site like codepen so we can see what's up. Have you seen the readme? https://github.com/davatron5000/FitText.js/blob/master/README.md

TrentWalton avatar Oct 18 '17 13:10 TrentWalton

Yeah, links and buttons don't resize using fittext, I tried in this pen: https://codepen.io/vendramini/pen/PBNqbN

I did some algorithm based in viewport width without change the properties of fittext, hope it might help as it helped me: https://codepen.io/vendramini/pen/jpqVdz

lwxbr avatar Jul 16 '18 17:07 lwxbr