![]() |
VOOZH | about |
Text Line height classes are used to set the gap between the two lines. there are several classes to set the line height. The default line height of the class is lh-base.
Bootstrap 5 Text Line height Classes:
| Class | Description |
|---|---|
| lh-1 | Set line height to 1 |
| lh-sm | Set line height to small |
| lh-base | Set line height to default |
| lh-lg | Set line height to large |
Syntax:
<tag class="Text Line height Class">...</tag>Example 1: In this example we are using Bootstrap 5's line-height classes (lh-1 and lh-base) to adjust the line height of paragraphs containing text
Output:
Example 2: In this example we are using Bootstrap 5's line-height classes (lh-1, lh-base, lh-sm, lh-lg) to adjust text line height in paragraphs.
Output: