How to vertically center a div for all browsers? December 25, 2017 | Md. Shahidul Islam

Below is the best all-around solution I have found. Tested and working for all browser.

HTML

<div class="outer">
    <div class="middle">
       <div class="inner">
           <h5>The Content Title</h5>
            <p>Content goes here..</p>
        </div>
      </div>
    </div>

CSS

.outer {
    display: table;
    position: absolute;
    height: 100%;
    width: 100%;
}
.middle {
    display: table-cell;
    vertical-align: middle;
}
.inner {
    margin-left: auto;
    margin-right: auto; 
    width: 400px;
}