Export (0) Print
Expand All

line-height

Sets the distance between lines in the object.

{ line-height: sHeight }

sHeight

Variant that specifies or receives one of the following values:

normal

Default. Default height.

height

Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).

percentage

Integer, followed by a percent sign (%). The value is a percentage of the height of the parent object.

The property has a default value of normal. The cascading style sheet property is not inherited.

Line height is the distance between the descender of the font and the top of the internal leading of the font.

If a formatted line contains more than one object, the maximum line height applies. In this case, negative values are not allowed.

The following example uses the line-height property to control the height of paragraph lines. This example uses the P and BLOCKQUOTE elements as selectors in an embedded (global) style sheet to change the distance between the lines in all P and BLOCKQUOTE element objects:

<style>
    p {line-height:8mm}
    blockquote {line-height:4mm}
</style>

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DEFAULTS, DFN, DIV, DL, DT, EM, FIELDSET, FORM, HN, HTML, I, IMG, INPUT TYPE=BUTTON, INPUT TYPE=CHECKBOX, INPUT TYPE=FILE, INPUT TYPE=IMAGE, INPUT TYPE=PASSWORD, INPUT TYPE=RADIO, INPUT TYPE=RESET, INPUT TYPE=SUBMIT, INPUT TYPE=TEXT, LI, OL, P, S, SELECT, SPAN, SUB, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

Community Additions

ADD
Show:
© 2015 Microsoft