Частный вебмастер Услуги Контакты Справочная информация Статьи и публикации Полезные сервисы Букварь вебмастера
   Букварь вебмастера

Атрибут line-height

line-height Attribute

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

The property refers to the distance between two adjacent lines' baselines.

This attribute is inherited.


If there is more than one element on a formatted line, the maximum 'line-height' will apply. One should therefore be careful when setting 'line-height' on inline elements.

Negative values are not allowed.

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 */

The three rules in the above example are identical. If the value is set to 'normal', the line-height is set to a reasonable value for the element's font. It is recommended that the 'normal' value be set between 1.0 and 1.2.

Смотрите далее: list-style »

  Атрибуты CSS