3 ms·
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.
by kevin_thibedeau 4y ago
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.
- bufferoverflow 4y agoI 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 agoHere's an example: https://jsfiddle.net/a3q87ucs/ https://jsfiddle.net/a3q87ucs/