I often have to scramble to try and find just the right font-family for a site I am working on, so I created this little cheat sheet for myself. I decided it might be useful for others as well, so I’m sharing it here. Included are the various font-families that are typically used, along with a representation of what they look like. Keep in mind that not every computer has every font, so any fonts you don’t have will display the default generic font family instead (sans-serif, serif, or monospace). I just cut and paste the code in gray when I want to use one of these in my CSS.
Sans serif is generally best for most text on screen.
font-family: Arial, Helvetica, sans-serif;
» Arial – The quick brown fox jumps over the lazy dog. 1234567890
» Helvetica – The quick brown fox jumps over the lazy dog. 1234567890
font-family: Verdana, Arial, Helvetica, “Trebuchet MS”, Tahoma, Geneva, “Lucida Sans Unicode”, “Lucida Grande”, “MS Sans Serif”, sans-serif;
» Trebuchet MS – The quick brown fox jumps over the lazy dog. 1234567890
» Verdana – The quick brown fox jumps over the lazy dog. 1234567890
» Tahoma – The quick brown fox jumps over the lazy dog. 1234567890
» Geneva – The quick brown fox jumps over the lazy dog. 1234567890
» Lucida Sans Unicode – The quick brown fox jumps over the lazy dog. 1234567890
» Lucida Grande – The quick brown fox jumps over the lazy dog. 1234567890
» MS Sans Serif – The quick brown fox jumps over the lazy dog. 1234567890
font-family: “Trebuchet MS”, Verdana, Arial, Helvetica, sans-serif;
Serif is generally best for text designed to be printed.
font-family: Times, “Times New Roman”, Georgia, serif;
» Times – The quick brown fox jumps over the lazy dog. 1234567890
» Times New Roman – The quick brown fox jumps over the lazy dog. 1234567890
» Georgia – The quick brown fox jumps over the lazy dog. 1234567890
font-family: Times, “Times New Roman”, Georgia, Garamond, “Palatino Linotype”, Palatino, “Book Antiqua”, “New York”, serif;
» Garamond – The quick brown fox jumps over the lazy dog. 1234567890
» Palatino Linotype – The quick brown fox jumps over the lazy dog. 1234567890
» Palatino – The quick brown fox jumps over the lazy dog. 1234567890
» Book Antiqua – The quick brown fox jumps over the lazy dog. 1234567890
» New York – The quick brown fox jumps over the lazy dog. 1234567890
font-family: Garamond, Georgia, Times, “Times New Roman”, serif;
Monospace is generally best when representing code or typewritten text.
font-family: Courier, monospace;
» Courier – The quick brown fox jumps over the lazy dog. 1234567890
font-family: “Lucida Console”, Monaco, Courier, “Courier New”, monospace;
» Lucida Console – The quick brown fox jumps over the lazy dog. 1234567890
» Monaco – The quick brown fox jumps over the lazy dog. 1234567890
» Courier New – The quick brown fox jumps over the lazy dog. 1234567890
font-family: Courier, “Courier New”, monospace;
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
RSS feed for comments on this post. TrackBack URL
Thanks for putting this CSS Cheat Sheet together. I’m sure it will come in handy in the future.
Regards,
Arnold
Very handy post, Donna. In particular I think it brings out extremely well how different fonts have different default sizes. How it looks will depend on which browser is being used to view this post. It can sometimes be important to check the appearance in several browsers if you are thinking of making a change in font. This post is a useful way of opening up that question.
Oh,wow, thanks so much for this! It’s already been a major time saver on my latest project.