Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kevin_thibedeau
· 4y ago · 0 comments
You just need flexbox or construct an SVG. Let the divs size themselves to the font and allow the browser to put them where they're told to go.
Comments
[–]
bufferoverflow
4y ago
I don't see how flexbox solves this problem. Just because you vertically center text, doesn't mean that the visible text is actually centered. It depends on the font.
[–]
bufferoverflow
4y ago
Here's an example:
https://jsfiddle.net/a3q87ucs/