Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Firefox, Chrome and Safari all have a zoom function (C-+ and C--) which is really nice. But is there a way to find out what is the generated font-size after the zoom?

share|improve this question
up vote 1 down vote accepted

In Firefox, I would just install the NoSquint extension, which (in addition to its other features) can display the current zoom level in the status bar.

share|improve this answer
Thanks a lot, that did the trick. – Robert Audi Aug 25 '10 at 7:14

Here is a little dirty trick as copied from:

    pa= pa || document.body;
    var who= document.createElement('div');
    var atts= {fontSize:'1em',padding:'0',position:'absolute',lineHeight:'1',visibility:'hidden'};
    for(var p in atts){[p]= atts[p];
    var fs= [who.offsetWidth,who.offsetHeight];
    return fs;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.