Cross-Browser jQuery text-zoom implementation

Posted by JMC Creative on Stack Overflow See other posts from Stack Overflow or by JMC Creative
Published on 2010-12-17T19:17:11Z Indexed on 2010/12/30 16:53 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I've got some code to increase/decrease font size. This is giving me a headache because each browser seems to implement the $.css('font-size') differently (see jquery bug). The part that's really killing me, though, is that Firefox is scaling up okay, but when I use the scale down function below, it scales up. Webkit & IE are both working as expected. Any ideas on that?

I put this in a fiddle here: http://jsfiddle.net/srQ3P/1/ where you can see it working as expected, and you can see it broken in firefox at the project page: http://cumberlandme.info/residents


MAJOR EDIT

Sorry, the issue is not the code, it's firefox buggy behavior. After I zoom in or out with the browser controls (ctrl + plus or ctrol + minus) the js goes haywire. This doesn't happen in other browsers. This is the real issue. Any advice on that

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about cross-browser