davatron5000 / FitText.js

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

Fittext not working on position absolute element ? #26

Closed comensee closed 12 years ago

comensee commented 12 years ago

Hi guys,

i am currently facing a small issue with the plugin. I need to place menu elements on bottom of my div, which its heights is 100%. To do that i use the bottom css property. The problem is that i wanted the text to inflate when resizing the page but it seems to not work properly.

Any ideas ?

davatron5000 commented 12 years ago

I would need to see a reduced test case, to diagnose, but it sounds like your absolute div is losing it's width value. Try setting width:100% on yoru absolutely positioned div. FitVids uses the parent element's context to calculate a new font-size.

comensee commented 12 years ago

You can get the my code sample here https://www.dropbox.com/sh/00k95oe5hp6s1fc/Ks5TvdqDFp

comensee commented 12 years ago

Fixing the width of the parent element is working just fine. Thanks for the advice.

I close this issue.