Sunday, January 06, 2008

Standard Web Fonts

I needed to pass someone a list of standard fonts you can rely on always being present in a browser. The list is short, but finding a reliable and easy to read list wasn't as easy as I would have thought.

I finally came across this page, which describes these standard fonts.

I especially like how the fonts are outlined so that you can easily drop them into a font-family CSS definition. For example, I should be writing:

  p {
    font-family: Arial Black, Arial Black, Gadget, sans-serif
  }

Instead of just:

 p {
   font-family: Arial Black;
 }

Sure, I knew technically that I should use the first format - but it's nice to see the actual font family values you're supposed to use to have the statement really make sense.

This is definitely a handy page to have around.

No comments:

Post a Comment