Web typography

Typographic style on the Web defines how we display text on websites, which includes font selections, size, display, leading, kerning and countless other variables. Follow these basic guidelines to avoid mishaps.

1. Use font stacks

Font stacks list different font faces in order of preference. Usually, these are similar in display and are therefore referred to as font families. Font families include sans-serif, serif, monospace, cursive, and fantasy.

Because developers are limited to the fonts available on the audience's computers, one must provide multiple fonts and a font family. The first font is the ideal font, the final font is the family to which the font belongs.

Every font face displayed on your sites should have at least an ideal font and its family. So

2. But don't overwhelm your readers

Using too many fonts is much like using too many colors -- it results in digital cacography that is difficult to read or digest. Generally speaking, it is unwise to employ more than three font faces within a page layout. Two fonts, usually one for headlines and another for body type is usually sufficient, particularly in this course.

3. Don't center body text

It is easy to align text with CSS, but that doesn't mean you should. By default text is aligned left, which is often ideal. Other options include right, center, and justify. Centered text results in ragged right and left edges, which hurts readability. Rarely use right, use center only for headers and justify may be used for body type.

4. Watch your measure

The measure equals the number of characters in a line, which should never exceed 70 but should not fall below 40. The measure is regulated by the ratio governing the font size and the width of either a DIV or a paragraph. Yes, there is a means to calculate the correct ratio.

Typographer Bringhurst recommends multiplying the text size by thirty to find an ideal line width. So, if you're using a 14px font, your line width would be roughly 420px
(14 x 30 = 420). Your width may be set on the paragraph, div or both.

5. Don't get fancy

Avoid too much color on type. Avoid more than three fonts per page. While you may assign unique values to each instance of text on your pages, your audience will be better served by keeping it simple and readable.

6. Use "chunks" or "bites" of type

Short, focused writing should be broken with subheaders. This makes your writing more scannable. Additionally, long, unbroken paragraphs should be absolutely avoided. Instead, use "chunks" -- short, easily digested paragraphs. One person defines a chunk as a single idea expressed in writing.

7. Use a hierarchy

Text size should reflect prominence (or lack thereof): The most important idea or type is largest; least important is smallest. When applying sizes, use the scale as applied to CSS by Mark Boulton, which roughly goes like this (from small to large): 11px, 13px, 16px, 18px, 24px, 36px. You may also apply font sizes with percentage (%) or M's (em).

Other methods

Beyond the methods explained above, other commonly used CSS methods of modifying fonts include the following.

Font-weight

Font-variant

Text-decoration

Letter-spacing

Line-height

jour 355

weekly schedule

  1. Internet & Web / HTML
    Readings: Get books
  2. Bits & bytes / HTML / Embedding / Code
    Readings: Briggs ch. 1
  3. Images / Exercise 2
    Readings: Briggs ch. 2
  4. Exam 1 / CSS Intro / Colors
    Readings: Briggs ch. 3
  5. Divisions / Web typography / Photoshop text
    Readings: Briggs ch. 4
  6. CSS ID / Project one guide
    Readings: Briggs ch. 5
  7. Exam 2 / Uploading / Backgrounds
    Readings: Briggs ch. 6
  8. Project one due / Evaluation guide
    Readings: Briggs ch. 7
  9. Spring Break
  10. Search / Project eval / Online advertising
    Readings: Briggs ch. 8
  11. Standards / Audio / Backgrounds
    Readings: Briggs ch. 9
  12. Exam 3
    Readings: Briggs ch. 10
  13. CSS3 / Usability / Lightbox
    Readings: Briggs ch. 11
  14. Project editing
    Readings: TBD
  15. Material review / Exam 4
  16. Final project
  17. Final project due

Matthew Blake    Department of Journalism    CSU-Chico   
mdblake@csuchico.edu    (530) 898-3608