Files
freeCodeCamp/guide/english/css/properties/line-height-property/index.md

16 lines
757 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Line Height Property
---
## Line Height Property
The `line-height` property sets the height of each line of text in an element. Lines in an element with a larger `line-height` will have more space in-between them.
2018-10-12 15:37:13 -04:00
A `line-height` can be set using...
* A fixed value (such as `25px`)
* A percentage of the current `font-size` (such as `130%`)
* A unitless number (such as `2`) which is multiplied by the current `font-size` (so `2` is double the `font-size`).
2018-10-12 15:37:13 -04:00
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->
[Line-height on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
[Line-height on W3Schools](https://www.w3schools.com/cssref/pr_dim_line-height.asp)