document.tags.paddingBottom

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.paddingBottom

Description

The paddingBottom property specifies the distance between the bottom border of an element and its content. Using dot notation, the property is associated with the tag called tagName.

Example

Listing 7.186 uses the paddingBottom property to set the distance between a line of text and its border.

Listing 7.186 Set the Bottom Padding with the paddingBottom Property
<html>

<script>
<!-- Hide

//Create a style sheet tag that defines the bottom padding
document.tags.P.borderWidths(10)
document.tags.P.paddingBottom = "40";

//Hide End --->
</script>

<p>This text has extra padding on the bottom.</p>

</html>
							
							
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.