line-heightline-height*
*Contents  *Index  *Topic Contents
*Previous Topic: letter-spacing
*Next Topic: link

line-height

Description

Specifies how far apart the lines in a paragraph are. Line height measures the distance between the descender of the font to the top of the internal leading of the font.

Syntax

{ line-height: normal | number | length | percentage}

Remarks

If there is more than one element on a formatted line, the maximum line height applies. Negative values are not allowed.

This attribute is inherited.

Example

The three rules in this example are identical. If the value is set to normal, the line height is set to the default line height for the element's font.

DIV { line-height: 1.2%; font-size: 10pt }   /* number */
DIV { line-height: 1.2em; font-size: 10pt } /* length */
DIV { line-height: 120%; font-size: 10pt } /* percentage */

Applies To

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, INPUT type=button, INPUT type=file, INPUT type=reset, INPUT type=submit, INPUT type=text

Scripting Property

lineHeight


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.