1. Home
  2. Computing & Technology
  3. Web Design / HTML

text-indent

By , About.com Guide

text-indent Description:

The text-indent property defines the indentation of the first line of the element.

text-indent in CSS Versions:
text-indent Syntax:

text-indent: <length> | <percentage> | inherit

  • length
    A specific length (include unit of measure) to indent or outdent the first line.
  • percentage
    A percentage of the parent element's width to indent or outdent the first line.
  • inherit
    The element should have the same text-indent setting as the parent.
text-indent Initial Value:

0

text-indent Applies To:

All block-level elements.

text-indent Inheritance:

This property is inherited.

text-indent Browser Support:
text-indent Examples:

Uppercase

<p style="text-indent: 1em;>
The first line in this paragraph is indented 1em while any subsequent lines will be aligned on the right margin.
</p>

text-indent Special Notes:
  • Negative values are permitted, but may not display correctly if there are implementation limits (such as no space available to outdent the text).
More text-indent Information:

Return to the Style Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: text-indent>

©2009 About.com, a part of The New York Times Company.

All rights reserved.