document.classes.textIndent

JavaScript 1.2+ Nav4+ Syntax

document.classes.className.tagName.textIndent

Description

The textIndent property specifies the indention should appear before text as associated with the class called className. The definition can also specify a tag or the word all for tagName. The property is assigned a number that represents either length or a percentage.

Example

Listing 7.91 uses the textIndent property to set the text indention to 1 inch.

Listing 7.91 Set the textIndent Property
 <html> <script> <!-- Hide //Create a style sheet class that defines text indention document.classes.INDENT.all.textIndent = "1in"; //Hide End ---> </script> <p>This text has no indention.</p> <p class=INDENT>This text is indented ...

Get Pure JavaScript 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.