Where an element's text stands on its baseline. Fonts differ by platform and script, so the baseline is measured rather than assumed, as to draw a rule beneath each line of text.
Measures how far below a line's top an element's text stands on its baseline, in its font, size and line height, which a hidden, empty inline block shows by standing on it. The block is laid beside the element, so that it serves a field too.
Measures how far below a line's top an element's text stands on its baseline, in its font, size and line height, which a hidden, empty inline block shows by standing on it. The block is laid beside the element, so that it serves a field too.
Value parameters
element
The element, laid out on the page.
Attributes
Returns
The distance, in pixels, or 0 for an element laid out nowhere.