css text-indent property


  Translation results:

text

English[tekst] American[tɛkst]

n. Text, original text; text, textbook; theme; version

v .Send text message

index

英[ˈɪndeks] 美[ˈɪnˌdɛks]  

n.index;<number>index;instruction;sign

vt. Index...; Index...; [Economics] Adjust according to living index (wages, prices, etc.)

vi. [Mechanics] Transposition

css text-indent propertysyntax

Function: The text-indent attribute specifies the indentation of the first line of text in the text block.

Description: is used to define the indentation of the first content line in block-level elements. This is most commonly used to create a "tab" effect. Allows specifying negative values, which creates a "hanging indent" effect.​

Note: Negative values ​​are allowed. If a negative value is used, the first line will be indented to the left. Prior to CSS 2.1, text-indent always inherited a calculated value rather than a declared value.

css text-indent propertyexample

<html>
<head>
<style type="text/css">
p {text-indent: 1cm}
</style>
</head>
<body>
<p>
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
</p>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A