How to set character spacing in css

醉折花枝作酒筹
Release: 2021-04-20 11:33:35
Original
2345 people have browsed it

In CSS, you can use the "letter-spacing" attribute to set the word spacing, the syntax is "letter-spacing: spacing value". The letter-spacing property increases or decreases the space between characters. This property defines how much space is inserted between text character boxes.

How to set character spacing in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

In CSS, the attribute that adjusts the spacing between words is letter-spacing. You set the spacing between words in the label by changing the value of the letter-spacing attribute of the label.

Example:

    document  

这是一段文字

这也是一段文字

Copy after login

Result:

How to set character spacing in css

Recommended learning:css video tutorial

The above is the detailed content of How to set character spacing in css. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!