This is a similar question and the answers either wrap another element or specify height: How do I vertically align something inside a span tag?
Is it possible to do this:
<span style="
background-color:linen;
font-size: 2rem;
font-weight: 500;
padding: 2rem;">
CENTER ME VERTICALLY
</span>
And get CENTER ME VERTICALLY
to do so without specifying height. I can get this to work with flex box and element wrapping, but I'm wondering if there is a simpler more elegant way to do it?