Overview
Sources
Libraries
Images API

Text Line Height text-line-height

Sets the line height or space for multiline texts.

Values

This parameter accepts float values in the range 0.0 to 100.0 with 1.0 preserving original line height.

  • Values below 1.0 will reduce line height.
  • Values over 1.0 will increase line height.

The default value for this parameter is 1.0.

Examples

Setting a text-line-height of 1.0 will preserver the original line height:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-line-height=1.0
Rendering text over image using a text-line-height of 1.0.
x px

For this example we are setting a text-line-height value of 1.5 increasing the original line height:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-line-height=1.5
Rendering text over image using a text-line-height of 1.5.
x px

Increasing text-line-height even more to a value of 2.0:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-line-height=2.0
Rendering text over image using a text-line-height of 2.0
x px