Visit Mozilla.org

CSS:border-right

From MDC

« CSS Reference

[edit] Summary

The border-right is a shorthand property for setting the width, style and color of right border of a box. This property can be used to set the values for one or more of: border-right-width, border-right-style, border-right-color. Omitted values are set to their initial values.

[edit] Syntax

border-right: [border-width || border-style || border-color | inherit] ;

[edit] Values

border-width
See border-width.
border-style 
See border-style.
border-color 
See border-color.

[edit] Examples

element { 
    border-right: 1px solid #000;
}

[edit] Notes

If the rule does not specify a border color, the border will have the color specified by the color property.

[edit] Specifications

[edit] Browser compatibility

[edit] See also

border, border-width, border-style, border-color, margin, padding

border-right, border-right-color, border-right-style, border-right-width