Hello World

<style>
.my-valignmiddle-div {
    display: block;
    height: 100px;
    width: 200px;
    border: 1px solid; text-align: center;
}
.my-valignmiddle-div span {
    display: inline-block;
    vertical-align:middle;
}
.my-valignmiddle-div .v-align {
    height:100%;
}
</style>
<div class="my-valignmiddle-div">
  <span class="v-align"></span>
  <span>Hello World</span>
</div>


comments powered by Disqus