Controlling Letter and Word Spacing - HTML

The letter-spacing and word-spacing properties can be used to control the letter and word spacing in an element. Both elements take an explicit or relative value to adjust the spacing—positive values add more space, and negative values remove space. For example, consider the following code and output:

The letter-spacing property does exactly as its name indicates, adjusts the spacing between letters.

The letter-spacing property does exactly as its name indicates, adjusts the spacing between letters.

Note that the user agent can govern the minimum amount of letter spacing allowed— setting the letter spacing to too small a value can have unpredictable results. The word-spacing property behaves exactly like the letter-spacing property, except that it controls the spacing between words instead of letters. Like letter-spacing, using a positive value with word-spacing results in more spacing between words, and using a negative value results in less spacing.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics