The definition and usage of the Text-indent property:
Retrieves or sets the indentation of text in an object.
Inline object to use this property must first make the object appear as a block-level or inline block-level.
The corresponding script attribute is textindent.
Syntax structure:
Text-indent:<length>|<percentage>
Value:
<length>: Specifies the indentation of the text with a length value, which can be negative.
<percentage>: Specifies the indentation of the text as a percentage, which can be negative.
Browser support:
This property is supported by IE browser.
Firefox supports this property.
This property is supported by Google Chrome.
Opera browser supports properties.
Inheritance:
is inherited.
Instance code:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title><styletype= "Text/css">. Parent{text-indent:20px;} </style> </Head> <Body> <Divclass= "Parent"> <Divclass= "Children">Welcome to Ant Tribe!</Div> </Div> </Body> </HTML>
The above code can also indicate that this property is inherited.
The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0606/3411.html
The most original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=1330
Text-indent Properties of CSS