NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties


This property indents the text in the first line of a block-level element. Values can be defined as length values (.5cm, 15px, 12pt, and so on) or as a percentage of the width of the block element. The default value is 0, which indicates no indentation.


p {text-indent: 5pt;}
#section1 {text-indent: 15%;}

Browser and CSS Support Notes

IE 3, 4, 5, 5.5, 6
Nav 4, 4.5-4.7, 6, 7
Opera 4, 5, 6, 7

(X)HTML Elements
CSS Properties
Back: text-decoration Next: text-shadow
< Home | About | Chapters | Examples | Errata | Reference | Site Map >