javascript STYLE borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth
@March 15, 2008, 1:22 a.m.
borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
Read/Write | |
Provide 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.getElementById("announce").style.borderBottomWidth= "thin"; document.getElementById("announce").style.borderLeftWidth = "thick"; document.getElementById("announce").style.borderRightWidth = "2px"; document.getElementById("announce").style.borderTopWidth = "0.5em"; |
|
Value | |
Three case-insensitive constantsthin | medium | thickallow the browser to define how many pixels are used to show the border. For more precision, you can also assign a length value . |
|
Default | |
medium |
Powered by Linode.