.first .inner{
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -50px;
    margin-left: -50px;
}
        
.second .inner{
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}
    
.third{
    display: -webkit-box;
    (-webkit-)box-align:center;
    (-webkit-)box-pack:center;
}
    
.forth{
    display: table-cell;
    vertical-align:middle;
    width: 500px;
}
    
.fifth{
    height:300px;
    line-height: 300px;
}
.fifth .inner{
    vertical-align:middle;
    display: inline-block;
}