Skip to content

Instantly share code, notes, and snippets.

@voidove
Last active September 14, 2016 03:00
Show Gist options
  • Save voidove/9b236c56462926020a0a3d3da3a49122 to your computer and use it in GitHub Desktop.
Save voidove/9b236c56462926020a0a3d3da3a49122 to your computer and use it in GitHub Desktop.
vertical-align
/**
* 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 {}
<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>
// 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