I have this code:
<div style="font-size: 1.5rem; width: 20%;vertical-align: middle;" >ABC</div>
When I look at the page it shows like this. I added x's to show the boundary of the DIV:
xxxxxxxxxxxxxxx
x x
x ABC x
x x
x x
xxxxxxxxxxxxxxx
It seems like the vertical-align is not doing anything.
Is there I can make it so that the space above and below the ABC is the same. I saw CSS tables and Flex. Is there a way I can do it with standard CSS or do I need to use something like CSS tables or Flex?