How to adjust html word spacing

藏色散人
Release: 2021-04-28 09:56:32
Original
8745 people have browsed it

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.

How to adjust html word spacing

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-spacingAttribute 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template