# Using CSS letter-spacing to control spacing within a word

ID: C8

Technology: css

Type: Technique

## When to Use

All technologies that support CSS.

## Description

The objective of this technique is to demonstrate how the visual appearance of spacing in text may be enhanced via style sheets while still maintaining meaningful text sequencing. The CSS `letter-spacing` property helps developers control the amount of white space between characters. This is recommended over adding blank characters to control the spacing, since the blank characters can change the meaning and pronunciation of the word.

## Examples

### Increasing the spacing between characters in a word

The following CSS would add the equivalent of a space between each character in a level-2 heading:

#### The CSS

    h2 {
      letter-spacing: 1em;
    }

#### The HTML

    <h2>Museum</h2>

The rendered result might look something like:

    M u s e u m

## Tests

### Procedure

For each word that appears to have non-standard spacing between characters:

1. Check whether the CSS letter-spacing property was used to control spacing.

### Expected Results

- Check #1 is true.

## Related Techniques

- F1
- F32

## Resources

- MDN - `letter-spacing`