May 2003
Intermediate to advanced
480 pages
10h 9m
English
This property sets the indent applied to the first line of a block element (and its children, thanks to inheritance).
A negative value will result in a hanging indent, with the text of the first line protruding from the content area of the block. You will usually want to balance a negative text-indent with a positive padding-left value of the same or greater size to keep all the text within the border of the block.
Inherited: Yes
See also: Section B.79padding
Any CSS length value (px, pt, em, etc.), or a percentage of the parent element's width.
Initial value: 0
CSS Version: 1
This property is supported by all CSS-compatible browsers.
This style rule creates a one-centimeter ...
Read now
Unlock full access