As you know em is a relative font measurement where one em is equal to the height of the letter "M" in the default font size. An advantage in using it is because you will be able to resize the text.
But how can i get default font size of current environment (in pixels) by using JavaScript or JQuery ?
regards,
Using jQuery (assuming that you want the font size of a specific element):
var originalFontSize = $('#your_element_id_here').css('font-size')
;If you're using Prototype as well as jQuery, you'll want to use the jQuery prefix instead of the dollar sign:
This will return the value as a string like so: 16px.
This works in FF.