Name
textIndent — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
The size of indenting of the first line of a block of inline text
(such as a P
element). Only the first line is
affected by this setting. A negative value can be used to outdent the
first line, but be sure the text does not run beyond the left edge of
the browser window or frame.
Example
document.all.firstGraph.style.textIndent = "0.5em"
Value
String value consisting of a number and unit of measure.
Default
0
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.