August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.align
The align property specifies the alignment of an element within its parent as associated with the tag called tagName.
The align property can be assigned one of the following values: left, right, or none.
Note
The align property is referred to as float when using CSS syntax. JavaScript could not use the word "float" because it was a reserved word.
Listing 7.162 uses the align property to align a paragraph to the right of its parent, the document.
<html> <script> <!-- Hide //Create a style sheet tag that aligns right document.tags.P.align = "right"; //Hide End ---> </script> <p>Send ... |
Read now
Unlock full access