<li style="height: 10px; font-size: 40px;">
<span style="position: absolute;">40px</span>
</li>
How to center <span>
vertically? It should work for any height
and font-size
of <li>
.
Without using display: flex
for <li>
. Interesting how to solve this with styling <span>
, is it possible?