1
No, the question is not repeated...
In other questions, I saw gambiarras to align the text vertically using margin, padding, etc.
And saw as a possible solution, change to display:flex, position:relative etc.
But if I need the display to continue block, or inline-block, is there any way to make the vertical-align work?
.menu{
height:100%;
width:20%;
}
.opcao{
height: 10%;
width:100%;
}
.opcao:hover{
background-color:blueviolet;
color: aliceblue;
cursor:pointer;
}
<div class="menu" >
<div class="opcao">
Teste
</div>
</div>