05. Font Spacing leading, kerning

Now let's take a look into the technicalities of line height and spacing.

Leading

Leading is the height of lines of an element. It is specified by the line-height property. This value is measured between the descender (lowest point) and the ascender (highest point). The value is relative to the normal font size, so a value of 2 would be 2 times the normal font size.

Note that the vertical space between lines should be larger than the space between each word; this helps the eye move along the line instead of down them.

It's often good practice to use em units so that the gap between lines is relative to the size of text the user has selected. 1.4 to 1.5em are good starting values.

Kerning

Kerning is the space between each letter. This is controlled by the letter-spacing property.

Make sure to increase kerning if text is all in uppercase. The gap between the words is controlled with the word-spacing property. Just like leading, it's good practice to use ems for your units.

Build modern and responsive webpages

The Modern Web

Build modern and responsive webpages Try Front-end

The Modern Web will guide you through the most important tools of device-agnostic web development, including HTML5, CSS3, and JavaScript. The plain-english explanations and practical examples emphasize the techniques, principles, and practices that you'll need to easily transcend individual browser quirks and stay relevant as these technologies are updated.

$ Check price
34.9534.95Amazon 4.5 logo(30+ reviews)

More Front-end resources

Aching back from coding all day?

Prism Glasses

Aching back from coding all day? Try Back Problems

Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.

$ Check price
4.454.45Amazon 4 logo(128+ reviews)

More Back Problems resources

Ad