Web Fonts

Web fonts are hosted by an external server or service such as Google Web Fonts, Adobe Typekit, or Montoype Inc. Fonts.com. These web fonts allow designers to pull typefaces from a server to display those typefaces on their own websites.

Without Web Fonts, a user's computer may not display the right font because their computer lacks the proper files. It is very important to declare and use web fonts, or a user's computer will determine a receplacement automatically. Sometimes those replacements are embarrassing.

Web Fonts vs. @font-face

@font-face is a CSS feature that allows you to use fonts that exist on your computer as a web font. It is advisible that you only use @font-face when you are certain your typeface has the correct copyrights that allow it to be used as a web font.

Web Fonts are typefaces that have been optimized and cleared for use on websites.

Font Fallbacks

Font Fallbacks are written in CSS as a way to prevent the user's computer from using a system default font in case your web font doesn't load properly.

Writing a Fallback

An example of a font fallback:

font-family: 'Muli', 'Tahoma', sans-serif;

Google Web Fonts


Pseudo Classes

Pseudo classes deal with 'events' in CSS. Typically, a pseudo class will wait for the user to perform a certain action before it runs the CSS code.

Pseudo classes are written with selectors, like this...


In the example above, the pseudo class is :hover. This class waits for the user to hover their mouse cursor over an element before the CSS will run.

Transition Effects

Hover 1

Hover 2

Button Transitions

Hover 3

Hover 4