August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.paddingTop
The paddingTop property specifies the distance between the left border of an element and its content. Using dot notation, the property is associated with the tag called tagName.
Listing 7.190 uses the paddingTop property to set the distance between a line of text and its border.
<html> <script> <!-- Hide //Create a style sheet tag that defines the top padding document.tags.P.borderWidths(10) document.tags.P.paddingTop = "40"; //Hide End ---> </script> <p>This text has extra padding on the top.</p> </html> |
Read now
Unlock full access