Changes

Jump to: navigation, search

CSS GUIDE TEXT INDENT

1,520 bytes added, 21:46, 13 December 2006
no edit summary
<span style="margin:0;background:#ffff33;font-size:120%;font-weight:bold;border:1px solid #a3b0bf;text-align:left;color:#000;padding:0.2em 0.4em;">This document is a work in progress and is subject to change.</span><br /><br />
== Summary ==

The text-indent indents the first line of text in an element. The property asks for the length of the indentation.

<table border="0">
<tr>
<td><b>Applicability:</b></td><td>The text-indent property can be used for all block-level elements, table cells and inline blocks.<td>
</tr>
<tr>
<td><b>[http://developer.mozilla.org/en/docs/CSS:%40media#Media_groups Media Group:]</b>
</td><td>Visual</td>
</tr>
<tr>
<td><b>Inherited:</b></td><td>Yes</td>
</tr>
</table>

== Syntax ==
<pre>
p
{
text-indent: 20px
}
</pre>

== Legal Values ==
The following measurements can be used:
* cm (centimeter)
* em (ems)
* inch (inches)
* mm (millimeters)
* pc (picas)
* px (pixels)
* pt (points)
* % (percentage of block width)

Negative number can also be used, but the text will be indented to the left (potentially cutting off some characters).

See [[#Usage Examples | usage examples]] section for more details.

== Mozilla Recommended Values ==

== Usage Examples ==
<pre>text-indent: 20px /*Indent 20 pixels.*/</pre>
<pre>text-indent: -12px /*Indent 12 pixels to the left.*/</pre>

== Notes ==

== Specification Conformance ==
*[http://www.w3.org/TR/CSS1#text-indent CSS 1 ]
*[http://www.w3.org/TR/CSS21/text.html#indentation-prop CSS 2.1]

== Browser Compatibility ==

== See Also ==
1
edit

Navigation menu