HTML:
<div class="myAlign"> Sample Content Here</div>
CSS:
.myAlign{
height: 300px;
display: table-cell;
vertical-align: middle
}
<div class="myAlign"> Sample Content Here</div>
CSS:
.myAlign{
height: 300px;
display: table-cell;
vertical-align: middle
}