Return to Snippet

Revision: 13255
at April 16, 2009 08:55 by johnloy


Initial Code
var measure= document.createElement('div');
measure.style.height= '10em';
document.body.appendChild(measure);
var size= measure.offsetHeight/10;
document.body.removeChild(measure);

Initial URL

                                

Initial Description

                                

Initial Title
detect a browser's font-size using javascript

Initial Tags
css, javascript, textmate

Initial Language
Other