Name
borderRight, borderTop — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
A shorthand property for getting or setting the
borderColor
, borderStyle
,
and/or borderWidth
properties for a single edge of
an element in one statement. You must specify a border style (see
borderStyle
) for changes of this property to
affect the display of the element’s border. If you want all
four edges to be the same, see the border
attribute. Only those component settings explicitly made in the
element’s tag attributes are reflected in the property, but you
may assign components not part of the original tag.
Example
document.all.announce.style.borderBottom = "inset red 4px" document.all.announce.style.borderLeft = "solid #20ff00 2px" document.all.announce.style.borderRight = "double 3px" document.all.announce.style.borderTop = "outset red 8px"
Value
For the
border
Edge
Style
and
border
Edge
Width
component values, see the respective properties in this
chapter. For details on the
border
Edge
Color
value, see the section about colors at the beginning of this chapter.
Default
None.
Get Dynamic HTML: The Definitive Reference 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.