document.classes.borderStyle

JavaScript 1.2+ Nav4+ Syntax

document.classes.className.tagName.borderStyle

Description

The borderStyle property specifies the style of the border that surrounds an element as associated with the class called className. The definition can also specify a tag or the word all for tagName.

The borderStyle property can be assigned one of the following values: none, solid, double, inset, outset, groove, or ridge.

Example

Listing 7.67 uses the borderStyle property to set the border around a text header to a double line.

Listing 7.67 Setting the Border Style with the borderStyle Property
 <html> <script> <!-- Hide //Create a style sheet class that creates a double border document.classes.ABORDER.all.borderWidths(10); ...

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.