How to set the spacing of P text by css
This article mainly introduces css how to set P text spacing, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
CSS spacing configuration within paragraph text
Paragraph HTML tag: P
1. P usage:
The first paragraph: mode wrapping mode. I am the content of the first paragraph.
Second paragraph: form
P usage
II. Css configure pen-and-ink spacing words
Css word: letter-spacing
Usage:
Letter-spacing:2px-sets the spacing between objects to 2px
3. Css sets the word spacing of pen and ink in the P tag of the equipment.
P text spacing CSS5.jianju {letter-spacing:6px}
The first paragraph: the content wraps. I am the content of the first paragraph.
The second paragraph: content, I was set word spacing 6px
Screenshot of the effect:
Specifies that the calligraphy spacing in the object of p's class=jianju is 6px.
Suppose you want to configure the spacing between the pen and ink in the p paragraph of the entire page, then the code:
P {letter-spacing:1px}
How to set the 1px spacing between the pen and ink in the p tag of the whole html.
Thank you for reading this article carefully. I hope the article "how to set P text spacing in css" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!