Vertical content center

HTML
<div class="div1"> <div class="div2"> This is simple text </div> </div>
CSS
.div1 { background:#fcfcfc; display: table; width: 100%; height: 100vh; } .div2 { display: table-cell; text-align: center; vertical-align: middle; }
JAVASCRIPT
Expand for more options Login