August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.ids.idName.textIndent
The textIndent property specifies that the indention should appear before text as associated with the ID called idName. The property is assigned a number that represents either length or a percentage.
Listing 7.135 uses the textIndent property to set the text indention to 1 inch.
<html> <script> <!--Hide //Create a style sheet id that defines the text indention document.ids.INDENT.textIndent = "1in"; //Hide End ---> </script> <p>This text has no indention.</p> <p id=INDENT>This text is indented 1 inch.</p> </html> |
Read now
Unlock full access