javascript STYLE borderWidth
@Aug. 15, 2009, 12:42 p.m.
borderWidth | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
|
Read/Write |
This is a shortcut property that lets you set multiple border edges to the same or different width. You may supply one to four space-delimited width length values. The number of values determines which sides receive the assigned widths. |
|
Example | |
document.getElementById("founderQuote").style.borderWidth = "3px 5px"; |
|
Value | |
Three case-insensitive constantsthin | medium | thickallow the browser to define exactly how many pixels are used to show the border. For more precision, you can also assign a length value. |
|
This property accepts one, two, three, or four values, depending on how many and which borders you want to set with specific widths. See the border-width attribute for complete details on how the number of values affects this property. |
|
Default | |
medium |
Permanent URL:
http://javascript.gakaa.com/style-borderwidth.aspx
Powered by Linode.