Style borderRightColor property
- Pagina precedente borderRight
- Pagina successiva borderRightStyle
- Torna alla pagina superiore Oggetto Style HTML DOM
Definition and usage
borderRightColor
Sets or returns the color of the element's right border.
See also:
CSS Tutorial:Bordo CSS
CSS Reference Manual:border-right-color property
HTML DOM Reference Manual:border property
Example
Example 1
Change the color of the right border of the <div> element to red:
document.getElementById("myDiv").style.borderRightColor = "red";
Example 2
Return the right border color of the <div> element:
alert(document.getElementById("myDiv").style.borderRightColor);
Syntax
Return borderRightColor property:
object.style.borderRightColor
Set borderRightColor property:
object.style.borderRightColor = "color|transparent|initial|inherit"
Attribute value
Value | Description |
---|---|
color |
Specifies the color of the right border. The default is black. See CSS color values, for a complete list of possible color values. |
transparent | The right border color is transparent (the underlying content will show through). |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | black |
---|---|
Return value: | A string that represents the color of the element's right border. |
CSS version: | CSS1 |
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supporto | Supporto | Supporto | Supporto | Supporto |
- Pagina precedente borderRight
- Pagina successiva borderRightStyle
- Torna alla pagina superiore Oggetto Style HTML DOM