{"id":14065,"date":"2011-09-05T20:47:44","date_gmt":"2011-09-06T03:47:44","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14065"},"modified":"2022-05-31T07:20:36","modified_gmt":"2022-05-31T14:20:36","slug":"line-height","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/l\/line-height\/","title":{"rendered":"line-height"},"content":{"rendered":"\n
The The According to the spec, a value of “normal” is not just a single concrete value that is applied to all elements, but rather computes to a “reasonable” value depending on the font size set (or inherited) on the element.<\/p>\n\n\n\n A length value can be defined using any valid CSS unit ( A percentage value is the font size of the element multiplied by the percentage. For example:<\/p>\n\n\n\nline-height<\/code> property defines the amount of space above and below inline elements. That is, elements that are set to
display: inline<\/code> or
display: inline-block<\/code>. This property is most often used to set the leading<\/a> for lines of text.<\/p>\n\n\n\n
p {\n line-height: 1.35;\n}<\/code><\/pre>\n\n\n\n
line-height<\/code> property can accept the keyword values
normal<\/code> or
none<\/code> as well as a number, length, or percentage.<\/p>\n\n\n\n
px<\/code>,
em<\/code>,
rem<\/code>, etc.).<\/p>\n\n\n\n