Get an element's computed line-height
If I want to find the line-height associated with an element such as a div, I can get it using
document.getElementById('div_name').style.lineHeight, but only if it's been set for that specific element (It won't return an inherited value from its parent element, instead it just returns an empty string).
Example: If I set text in
14px with a line height of
1.56em, I can use Firebug to tell me the computed style's line-height is 21.833px (in Firefox of course).