Skip to content

Instantly share code, notes, and snippets.

@voidove
Created September 6, 2016 09:06
Show Gist options
  • Save voidove/23c3e4dc2d417c5a3f7c1655addebdd2 to your computer and use it in GitHub Desktop.
Save voidove/23c3e4dc2d417c5a3f7c1655addebdd2 to your computer and use it in GitHub Desktop.
line-height and font-size
/**
* line-height and font-size
*/
.test1 {
font-size: 0;
line-height: 24px;
border: 1px solid;
background: grey;
}
.test2 {
font-size: 24px;
line-height: 0;
border: 1px solid red;
}
<p class="test1">My font size is 0 and have line-height</p>
<p class="test2">My line-height is 0 and have font size</p>
// 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