From the course: Responsive Typography Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implementing a modular scale to create typographic hierarchy

Implementing a modular scale to create typographic hierarchy - CSS Tutorial

From the course: Responsive Typography Techniques

Start my 1-month free trial

Implementing a modular scale to create typographic hierarchy

In this tutorial, we'll be applying a modular scale to a sample page. Modular scales much good until we actually apply them to something. Modular scales add consistent hierarchy tier to your typography by making your sizing decisions using numbers from the scale. Typically you would spend a bit of time choosing which scale to use, but for our example page I'll pick an arbitrary and popular scale ratio for demonstration purposes. For our example, we'll use the golden ratio of 1 to 1.618. My favorite tool for coming up with this scale is modularscale.com. So let's head to our browser, and open it up to get our scale numbers. The calculator at modularscale.com asks you for two numbers. First, your ideal text size, and then another important number. That second important number is optional, and it will result in a double string scale. I want to keep things simple for our first example, so we'll just set our ideal text size as 16 pixels and leave the other one blank for now. In the ratio…

Contents