I want a vertical-align
property that aligns with the text middle
#206
aarongustafson
started this conversation in
Wants
Replies: 1 comment
-
The upcoming leading-trim CSS property should fix this, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Icons and other glyph-like symbols appear most consistent with adjacent text when they are aligned with that text's typographic middle (half its cap height). There is currently no
vertical-align
property that easily accomplishes this: Many projects instead usevertical-align: middle
and then push or pull the icon up or down a pixel or two usingtop
,translate
ormargin
to account for the difference. It would be nice to have an explicitvertical-align: text-middle
property.Here’s an example of what that could look like.
https://webwewant.fyi/wants/113/
Beta Was this translation helpful? Give feedback.
All reactions