This property specifies the horizontal indent from the left side of the current
parent Block Element for the first line in the current Block. The indent is
only applied at the beginning of the block and not after any intervening
line-breaking elements (like BR.)
Allowed Values
inherit
CSS2
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
[length]
CSS1 | CSS2
| IE3B1 | N4B2
| O3.5
Type: Calculated
Description:
This is an absolute value to determine text indenting. Negative values are
allowed, but browsers may have limits to behavior in such situations. Consult
the Units Page for acceptable length
unit systems.
[percentage]
CSS1 | CSS2
| IE3B1 | N4B2
| O3.5
Type: Calculated
Description:
This number is a multiplier used to determine the text-indent relative to
the parent block's width.
Example
Ext/Doc: p {
text-indent: 0.5in }
In-Line: <pSTYLE="text-indent:
0.5in">text</p>
Browser Peculiarities
Internet Explorer
4.0+:
- [Reported elsewhere] Text-indent percentages are apparently
not calculated correctly.
5.0+:
- When new blocks of content are contained within a text-indented
block element (eg: regular DIV nested inside a DIV with 'text-indent'),
the 'text-indent' applies to each new block line, not just the first
line of the element like it is supposed to.
Netscape
4.x:
- [Reported elsewhere] 'Text-indent' percentages are apparently
not calculated correctly.