August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.textAlign
The textAlign property specifies the alignment of text within an element as associated with the class called className. The definition can also specify a tag or the word all for tagName.
There are four types of values that are valid for the textAlign property: left, right, center, and justify.
Listing 7.89 uses textAlign property to align the text to the right.
<html> <script> <!-- Hide //Create a style sheet class that defines right alignment document.classes.RIGHT.all.borderWidths(10) document.classes.RIGHT.all.textAlign = "right"; //Hide End ---> </script> <p class=RIGHT>This ... |
Read now
Unlock full access