ScanSkill
CSS Examples

How to Add Space Between the Letters using CSS

In this example, we will see how to add space between the letters using CSS. We can use the letter-spacing property to specify the spacing between the letters.

Prerequisites

Example

HTML

<span class="example">mind the gap</span>

CSS

.example {
            letter-spacing: 5px;
        }

Output

How to Add Space Between the Letters using CSS

Here, we used letter-spacing: 20px to add a space of 5px between the letters.

Conclusion

In this example, we learned how to add space between the letters using CSS. We used the letter-spacing property to specify the spacing between the letters.