0% completed
Letter spacing and word spacing properties allow you to control the spacing between characters and between words. These properties improve readability and can enhance the visual appearance of your text. Adjusting spacing helps create a comfortable balance and style in your typography.
Follow the code block below to set letter spacing and word spacing in CSS:
/* Set letter spacing */ letter-spacing: normal | length; /* e.g., letter-spacing: 2px; */ /* Set word spacing */ word-spacing: normal | length; /* e.g., word-spacing: 4px; */
Explanation:
normal
(default spacing) or a specific length such as 2px
.normal
or a length like 4px
.In this example, we apply increased letter spacing to a paragraph to create a more open and spacious look for the text.
Explanation:
letter-spacing: 2px
adds 2 pixels of space between each character.This lesson shows you how to adjust both letter spacing and word spacing. By using these properties, you can tailor the appearance of your text to enhance its readability and overall style on your web pages.
.....
.....
.....