When I'm making web pages I like to use unicode characters for icons when images or SVGs really aren't necessary. It's easy for me and it makes the page lighter. This works pretty well, usually, except that I always end up having to fiddle with the offset to get it centered correctly.
Yes, yes, I know about this:
.someDiv {
width: 10px;
height: 10px;
line-height: 10px;
text-align: center;
}
But the catch is that most glyphs are not themselves vertically centered. This means that I end up, for example, with this vertically off-center ●
in a square container with that CSS:
Is there a CSS way to center the glyph and not the font's mean line? (Or whatever is technically being centered.)