liveBook · Manning

Font stack

As explained in Web Design Playground

An ordered list of font family names specified so the browser can fall back to the next available font if earlier choices are unavailable.

A font stack is an ordered list of font family names in a CSS font-family value. The browser tries them in order, then falls back to the next available font if one is missing. section 18.2 section 18.1

It helps page text stay readable across different devices, since system fonts are not installed everywhere. The safest ending is usually a generic family such as serif, sans-serif, or monospace. section 18.2 section 18.4

A basic stack strategy is to line fonts up from most specific to most dependable:

Example stack

font-family: "League Spartan", Futura, Tahoma, sans-serif;

Project-style usage

A page body can use a stack like "Open Sans", Verdana, sans-serif alongside background and text colors. section 20.12

How Web Design Playground covers it

How deep it goes
Defines the ordered fallback rule and gives practical ordering guidance, but stops short of teaching web fonts or font loading.
Examples
Uses short CSS stacks and full page body examples, including serif and sans-serif combinations.
What it assumes
Assumes only basic CSS familiarity and teaches the fallback idea from zero.
What you can do after
Build it from scratch with a preferred family, backups, and a generic fallback that preserves the intended style.
How it connects
Connects to font-family, generic font families, system fonts, and web fonts.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.