document.classes.borderWidths()

JavaScript 1.2+ Nav4+ Syntax

document.classes.className.tagName.borderWidths(top,right,bottom,left)
document.classes.className.tagName.borderWidths(top-bootom,right-left)
document.classes.className.tagName.borderWidths(all)

Description

The borderWidths() method specifies the width 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. Setting border widths is equivalent to setting the borderBottomWidth, borderLeftWidth, borderRightWidth, and borderTopWidth properties. Table 7.11 lists all the arguments associated with the borderWidths() method.

Table 7.11. Arguments Associated with the borderWidths() Method ...

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.