document.ids.borderBottomWidth

JavaScript 1.2+ Nav4+ Syntax

document.ids.idName.borderBottomWidth

Description

The borderBottomWidth property specifies the width of the bottom border of an element as associated with the ID called idName.

Example

Listing 7.107 uses the borderBottomWidth property to set the size of bottom border that surrounds a text header. Notice that only the bottom portion of the border is shown.

Listing 7.107 Setting the Bottom Border Width with the borderBottomWidth Property
<html>

<script>
<!-- Hide

//Create a style sheet id that creates a bottom border
document.ids.BBW.borderBottomWidth = "10";

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

<h2 id=BBW>This text has a bottom border</h2>

</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.