Is there a way to vertically center an element between the tallest and shortest characters of another element (preferably using just CSS, but JavaScript is also acceptable)?
I want it to be aligned with the actual text content rather than the line height, in order to achieve the "perceived middle" of the text.