How to set the left and right spacing of css text
This article mainly shows you the "css text left and right spacing how to set", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "css text left and right spacing how to set" this article.
An example of setting equipment for css text layout spacing
Css letter-spacing "css spacing" is used to set the left and right spacing of English, numbers, Chinese characters and other characters.
1. The shape of the spacing example
Set the value of letter-spacing difference of equipment equipment to see if the spacing can be completed.
2. Code (the example code can be copied directly to practice)
The left and right spacing of css5.com.cn.x2 {letter-spacing:2px} .x5 {letter-spacing:5px} .x10 {letter-spacing:10px} is 2px
Calligraphy Pinyin: wenzi
Arabic numerals: 1234567890
Separate different spacing for Chinese characters, letters and numbers.
3. Screenshot
Screenshots of examples of spacing between different text content
Pen-and-ink spacing distance setting equipment is realized by letter-spacing, and different values can be configured if different distances are needed.
The above is all the contents of the article "how to set the left and right spacing of css text". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!