August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.borderTopWidth
The borderTopWidth property specifies the width of the top border of an element as associated with the tag called tagName.
Listing 7.170 uses the borderTopWidth property to set the size of top border that surrounds a text header. Notice that only the top portion of the border is shown.
<html> <script> <!-- Hide //Create a style sheet tag that creates a top border document.tags.H2.borderTopWidth = "10"; //Hide End ---> </script> <h2>This text has a top border</h2> </html> |
Read now
Unlock full access