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 first line indentation for css

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

Share

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

This article mainly explains "how to set the first line indentation in css". Friends who are interested may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to set the first line indent in css.

In css, you can use the "text-indent" attribute to set the indentation of the first line of text, which is used to specify the indentation style of the first line of text in the text block, simply by adding the "text-indent: indent value;" style to the element.

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

How to set the first line indentation for css

In css, you can use the text-indent attribute to set the first line indentation, and the function of the text-indent attribute is to specify the indentation of the first line of text in the text block.

Examples are as follows:

Document p {text-indent: 1cm}

The danger is very high! The westward way is harder than to climb the sky! According to legend, Bombyx mori and Yufu established the kingdom of Shu, and the founding of the country has been impossible to discuss in detail for a long time! Since then, there have been about 48,000 people who have no contact with Qin Sai. In the west of Taibai Mountain, there is a path that birds can cross, which can cross the top of the eyebrow. The five strong men of Shu were crushed to death in the landslide, and the staircase paths of the two places began to connect with each other. There are mountain tops blocking the six dragons of the sun god, and tortuous rivers emptied by surging waves below. The yellow swan, which is good at flying high, can not be flown by, and the ape wants to climb. How the Qingni Ridge twists and turns around the mountains, lingering nine bends around the rocks within a hundred steps. You can touch ginseng and Jing Xing to hold your head and hold your breath, and you can sit down and sigh in horror with your hands.

Output result:

At this point, I believe you have a deeper understanding of "how to set the first line indentation in css". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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