Added a CSS line-height page to the guides (#33288)
This commit is contained in:
@ -2,14 +2,14 @@
|
||||
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.
|
||||
|
||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/css/properties/line-height-property/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
||||
|
||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
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`).
|
||||
|
||||
#### 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)
|
||||
|
Reference in New Issue
Block a user