Skip to content

Instantly share code, notes, and snippets.

@chodorowicz
Last active June 16, 2016 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chodorowicz/dfb80c96467b7a93dd79bd8f95bd6b4d to your computer and use it in GitHub Desktop.
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
@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