The 8 Definitive Font Stacks


/ Published in: CSS
Save to your folder(s)

The "Definitive CSS Font Stacks"


Copy this code and paste it in your HTML
  1. /*The Times New Roman-based serif stack:*/
  2. font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
  3.  
  4. /*A modern Georgia-based serif stack:*/
  5. font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
  6.  
  7. /*A more traditional Garamond-based serif stack:*/
  8. font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
  9.  
  10. /*The Helvetica/Arial-based sans serif stack:*/
  11. font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  12.  
  13. /*The Verdana-based sans serif stack:*/
  14. font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
  15.  
  16. /*The Trebuchet-based sans serif stack:*/
  17. font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
  18.  
  19. /*The heavier “Impact” sans serif stack:*/
  20. font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif;
  21.  
  22. /*The monospace stack:*/
  23. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;

URL: http://articles.sitepoint.com/article/eight-definitive-font-stacks/1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.