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

JavaScript & JQuery

Build modern and responsive webpages Try Front-end

This book was written for anyone who wants to use JavaScript to make their websites a little more interesting, engaging, interactive, or usable. In particular, it is aimed at people who do not have a degree in computer science (well, not yet anyway).

$ Check price
39.9939.99Amazon 4.5 logo(385+ reviews)

More Front-end resources

Aching back from coding all day?

Inversion Therapy Table

Aching back from coding all day? Try Back Problems

Stretch out your back and relieve your back muscles with inversion therapy. This device counteracts the forces of gravity on the body by decompressing and elongating the spine. By using this product just ten minutes a day, you can be well on your way to improved circulation and posture while relieving muscle aches, back pain and stress.

$$ Check price
119.98119.98Amazon 4.5 logo(1,700+ reviews)

More Back Problems resources

Ad