Name
borderWidth — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
A shortcut property that lets you set multiple border edges to the same or different width. For Internet Explorer, you may supply one to four space-delimited width length values (Navigator 4’s property is read-only). The number of values determines which sides receive the assigned widths.
Example
document.all.founderQuote.style.borderWidth = "3px 5px"
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).
In Internet Explorer, this property accepts one, two, three, or four
width values, depending on how many and which borders you want to set
with specific widths. See the border-width
attribute listing in Chapter 10 for complete
details on how the number of values affects this property.
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.