Help Center

Local Navigation

CSS property: line-height

Availability

BlackBerry® Device Software version 4.6 or later

Usage

All elements

Inherited

Yes

Default value

normal

The line-height property specifies line height for the text of an element.

  • For block-level elements, the line-height property specifies the minimum line height.

  • For inline elements, the line-height property specifies the exact line height.

Considerations

Negative values are not permitted.

Property values

Parameter

Description

number

This value specifies the line height as a factor of the font height. That is, the number you specify is multiplied with the font size to determine the line actual line height. For example, setting line-height: 1.5 for a 12pt font will result in an applied line height of 18pt.

percentage

This value specifies the line height as a percentage of the font size.

normal

This value specifies that the BlackBerry® Browser renders the line height using browser-determined line height, which typically results in a numeric value of 1.0 to 1.2.

inherit

This value specifies that the element inherits the line-height property value from the containing element.

Index


Was this information helpful? Send us your comments.