Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set the spacing of P text by css

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report