Added a CSS line-height page to the guides (#33288)

This commit is contained in:
Ethan
2019-02-23 05:29:26 +11:00
committed by Randell Dawson
parent a21e287b00
commit 4398114837

View File

@ -2,14 +2,14 @@
title: Line Height Property title: Line Height Property
--- ---
## 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 `line-height` can be set using...
* A fixed value (such as `25px`)
<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>. * 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`).
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
#### More Information: #### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article --> <!-- 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)