how to center text vertically code example
Example 1: vertical align css
.container{
display: table;
}
.div-inside-container{
display: table-cell;
vertical-align: middle;
}
Example 2: how to make the text vertically centered in css
/*attention, i used this code because i had to center a div with text in another div without text*/
div{
position: relative;
top: 25%;
bottom: 25%;
}