Name

borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The width of a single border edge of an element. See also the borderWidth property for setting the width for groups of edges in one statement.

Example

document.all.announce.style.borderBottomWidth= "thin"
document.all.announce.style.borderLeftWidth = "thick"
document.all.announce.style.borderRightWidth = "2px"
document.all.announce.style.borderTopWidth = "0.5em"

Value

Three case-insensitive constants—thin | medium | thick—allow the browser to define exactly how many pixels are used to show the border. For more precision, you can also assign a length value (see the discussion of length values at the beginning of this chapter).

Default

medium

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.