javascript STYLE border
border | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
|
Read/Write |
Provides a shorthand property for getting or setting the borderColor, borderStyle, and/or borderWidth properties of all four borders around 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 (a missing style is interpreted as no style, ergo no border). Numerous other properties allow you to set the width, style, and color of individual edges or groups of edges if you don't want all four edges to be the same. 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. Available in IE as a property of the style and runtimeStyle objects only. |
|
Example | |
document.getElementById("announce").style.border = "inset red 4px"; |
|
Value | |
Space-delimited string. For details on the borderColor value, see the section about CSS colors. |
|
Default | |
None. |
Powered by Linode.