August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.ids.idName.textAlignThe textAlign property specifies the alignment of text within an element as associated with the ID called idName.
There are four types of values that are valid for the textAlign property: left, right, center, and justify.
Listing 7.133 uses the textAlign property to align the text to the right.
<html> <script> <!-- Hide //Create a style sheet id that defines the right alignment document.classes.FORMAT.all.borderWidths(10) document.ids.RIGHT.textAlign = "right"; //Hide End ---> </script> <p class=FORMAT id=RIGHT>This text is aligned right.</p> </html> |
Read now
Unlock full access