Skip to content

Instantly share code, notes, and snippets.

@voidove
Last active September 12, 2016 08:31
Show Gist options
  • Save voidove/8b0b3a784499ac2cad70c91e076be6b5 to your computer and use it in GitHub Desktop.
Save voidove/8b0b3a784499ac2cad70c91e076be6b5 to your computer and use it in GitHub Desktop.
line-height value
/**
* line-height value
*/
p, div {
border: 1px solid;
margin: 10px;
}
h3 {
font-size: 20px;
}
.test1 {line-height: normal;}
.test2 {line-height: 1.5; width: 200px; font-size: 15px;}
.test3 {line-height: 150%; width: 200px; font-size: 15px;}
<p class="test1">On block level elements, the line-height property specifies the minimum height of line boxes within the element.</p>
<div class="test2">
<h3>On block level elements, the line-height property specifies the minimum height of line boxes within the element.</h3>
</div>
<div class="test3">
<h3>On block level elements, the line-height property specifies the minimum height of line boxes within the element.</h3>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment