How can I center a single unicode character vertically in a container?
问题 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