DEV Community

Discussion on: How CSS line-height works and best practices

Collapse
 
liaokaien profile image
invisibleTattoo • Edited

In the example in MDN Docs, h1 element inherits line-height: 1.1em from its parent div element; Only in such circumstance the computed line-height of h1 would be 1.1 * its parent element's font-size;