You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > MozBorderRightColors
MozBorderRightColors style property
Sets or retrieves the border colors for the right edge. You can specify as many color values as you want. All specified colors will appear as a 1px thick line.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: -moz-border-right-colors |
Possible values:
The type of this property is string.
One of the following values: | ||||||||||
|
Description of values:
The color of the border. For the supported color values, see the colors page. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Do not use any color striping for this border side. |
Default: none.
Example HTML code 1:
This example illustrates the use of the -moz-border-right-colors property:
|
||||
<head> <style> .example { border-right-width: 8px; border-right-style: solid; -moz-border-right-colors: red blue yellow green; } </style> </head> <body> <div class="example"> border with four colors: red blue yellow green </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the MozBorderRightColors property in JavaScript:
|
||||
<head> <style> .example { border-right-width: 8px; border-right-style: solid; -moz-border-right-colors: red blue yellow green; } </style> <script type="text/javascript"> function ChangeBorderColors () { var div = document.getElementById ("myDiv"); if ('MozBorderRightColors' in div.style) { div.style.MozBorderRightColors = "green yellow blue red"; } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> <div class="example" id="myDiv"> border with four colors: red blue yellow green </div> <button onclick="ChangeBorderColors ();">Change border colors!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.style
HTML elements:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, marquee, menu, object, ol, optgroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tt, u, ul, var
Related pages:
MozBorderBottomColors
MozBorderEnd
MozBorderEndColor
MozBorderEndStyle
MozBorderEndWidth
MozBorderLeftColors
MozBorderRadius
MozBorderRadiusBottomleft
MozBorderRadiusBottomright
MozBorderRadiusTopleft
MozBorderRadiusTopright
MozBorderStart
MozBorderStartColor
MozBorderStartStyle
MozBorderStartWidth
MozBorderTopColors
border
borderBottom
borderBottomColor
borderBottomStyle
borderBottomWidth
borderColor
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderStyle
borderTop
borderTopColor
borderTopStyle
borderTopWidth
borderWidth
MozBorderEnd
MozBorderEndColor
MozBorderEndStyle
MozBorderEndWidth
MozBorderLeftColors
MozBorderRadius
MozBorderRadiusBottomleft
MozBorderRadiusBottomright
MozBorderRadiusTopleft
MozBorderRadiusTopright
MozBorderStart
MozBorderStartColor
MozBorderStartStyle
MozBorderStartWidth
MozBorderTopColors
border
borderBottom
borderBottomColor
borderBottomStyle
borderBottomWidth
borderColor
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderStyle
borderTop
borderTopColor
borderTopStyle
borderTopWidth
borderWidth
External links:
User Contributed Comments