How can I detect font size using jQuery? If I am using em
and i need to detect font size in pixels
<h1 style="font-size: 5em">Size of font in pixels?</h1>
http://jsfiddle.net/g9uKq/
I made you a fiddle just to be clear.
var size = $("h1").css('font-size');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With