Contents
What does CSS line height mean?
Using the CSS line-height
property, you can specify a custom height for a line box:
Increasing the CSS line height means adding extra space over and under the actual text characters. Manipulating this property allows you to change CSS line spacing, making the text easier to read:
The syntax for CSS line-height
The line-height
CSS property requires to define one value:
line-height: value;
You can find all the ways to specify the value for the CSS line height in the table below.

- Simplistic design (no unnecessary information)
- High-quality courses (even the free ones)
- Variety of features
- Nanodegree programs
- Suitable for enterprises
- Paid certificates of completion

- Easy to navigate
- No technical issues
- Seems to care about its users
- Huge variety of courses
- 30-day refund policy
- Free certificates of completion

- Great user experience
- Offers quality content
- Very transparent with their pricing
- Free certificates of completion
- Focused on data science skills
- Flexible learning timetable
CSS line height values
Value | Description |
---|---|
normal |
The default value. Represents the font size multiplied by 1.2 |
Unitless numbers | A number to multiply the font size value by |
Percentages | A percentage to multiply the font size value by |
Length units | A fixed line height in pt, px, cm, etc. |
See one more example to see how percentages can be used for CSS line spacing:
Browser support

Chrome

Edge

Firefox

IE

Opera

Safari
Mobile browser support

Chrome

Firefox

Opera
