Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set the spacing of P text by css

Shulou Source: shulou.com Published: 2022-06-01 06:53:17 11月04日 Update

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!

Tags: Spacing pen and ink content articles tags paragraphs configurations words objects forms furnishings text patterns two paragraphs between code value interest and at the same time screenshots Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB OPPO Reno Shulou Information vpn