document.ids.borderRightWidth

JavaScript 1.2+ Nav4+ Syntax

document.ids.idName.borderRightWidth

Description

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

Example

Listing 7.110 uses the borderRightWidth property to set the size of right border that surrounds a text header. Notice that only the right portion of the border is shown.

Listing 7.110 Setting the Right Border Width with the borderRightWidth Property
<html>

<script>
<!-- Hide

//Create a style sheet id that creates a right border
document.ids.BRW.borderRightWidth = "10";

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

<h2 id=BRW>This text has a right 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.