Kindess Kindess - 2 months ago 22
CSS Question

CSS word vertical scale

I want to place the word vertical-align:middle.(Always in the middle of div when scaling the browser). I have tried a lot of methods but fail to keep it in the middle when scale. How can i do that? Please

<div class="word">
<h1>Hello!!</h1>

</div>

Answer

You can try this basic approach:

.word {
    height: 90px;
    background: #000;
    color: #FFF;
    line-height: 90px;
}
<div class="word">
 <h1>Hello!!</h1>

</div>

Comments