Last active
June 16, 2016 08:08
-
-
Save chodorowicz/dfb80c96467b7a93dd79bd8f95bd6b4d to your computer and use it in GitHub Desktop.
some fonts when all caps are difficult to center since height of the line takes has descenders included (even when they're not there) / CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin addTopOffsetToVisuallyCenter() { | |
/** all caps don't look vertically centered, becase height of span (for Lasiver font at least) takes into accoutn descenders, even if they're not used | |
** so, that 'top' should counter that | |
*/ | |
position: relative; top: 0.15em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment