Created
September 6, 2016 09:06
-
-
Save voidove/23c3e4dc2d417c5a3f7c1655addebdd2 to your computer and use it in GitHub Desktop.
line-height and font-size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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