When using flexbox, I can align things by such css:
.crp_related .crp_title {
border-radius: 0px !important;
font-weight: 600;
background-color: #4E64DD !important;
height: 50px;
display: flex;
text-align: center;
overflow: hidden;
line-height: 1.5;
flex-flow: unset;
justify-content: center;
align-items: unset;
position: absolute;
padding: 4px 0px;
}
The problem is one line text will not go to middle: https://i.stack.imgur.com/B8QD7.png
If I use align-items: center;
, there is another problem: https://i.stack.imgur.com/wtefi.png (If has more than two lines, it globaly centering, and also this is not what I want)
So how do I push one linner into middle?