Space Ninja
  • Home
  • Portfolio
  • Speaking
  • Friday Front-End
  • Better Job in Tech
Subscribe

typography

A collection of 2 posts
How to use @font-face to avoid faux-italic and bold browser styles
css

How to use @font-face to avoid faux-italic and bold browser styles

Did you know that if you declare a custom font using @font-face, the browser will try to fake the bold and italic styles if it can't find them? This is a clever little feature that avoids a scenario where a designer specifies a font and is then confused that bold
Nov 29, 2010 — 6 min read
How to avoid paragraph gaps when using superscript and subscript
css

How to avoid paragraph gaps when using superscript and subscript

Frequently, when I see a webpage with superscript or subscript text, I see associated gaps in the paragraph. This is caused because the default way browsers render super and subscript text is to add enough vertical space in the paragraph to show them. The result is ugly, but as you
Sep 10, 2009 — 1 min read
Space Ninja © 2022
Powered by Ghost