Home > Article > Web Front-end > How to adjust html word spacing
htmlHow to adjust word spacing: 1. Set the spacing between English letters through the "word-spacing" attribute; 2. Set the spacing between Chinese characters through the "letter-spacing" attribute.
The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer.
word-spacing: For the spacing between English letters, it does not take effect for Chinese
letter-spacing: For the spacing between Chinese characters
word-spacing
Attribute increases or decreases the space between words.
letter-spacing
property increases or decreases the space between characters (character spacing).
This property defines how much space is inserted between text character boxes. Because character glyphs are typically narrower than their character boxes, specifying a length value adjusts the usual spacing between letters. Therefore, normal is equivalent to a value of 0.
Note: Negative values are allowed, which will squeeze the letters closer together.
[Recommended learning: HTML video tutorial]
The above is the detailed content of How to adjust html word spacing. For more information, please follow other related articles on the PHP Chinese website!