Last active
September 14, 2016 03:00
-
-
Save voidove/9b236c56462926020a0a3d3da3a49122 to your computer and use it in GitHub Desktop.
vertical-align
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
/** | |
* vertical-align | |
*/ | |
.test1 { | |
border: 1px solid; | |
//line-height: 0; | |
} | |
img { | |
vertical-align: baseline; | |
} | |
.test2 { border: 1px solid; margin-top: 10px;} | |
.test2 div {display:inline-block; width: 50px; height: 30px;border: 1px solid red;vertical-align: middle;} | |
.second {} |
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
<div class="test1"> | |
<img src="" style="width: 32px"; height="32px"/><span>The vertical-align CSS property specifies the vertical</span> | |
</div> | |
<div class="test2"> | |
<div></div> | |
<div class="second">second</div> | |
</div> |
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