CSS:border-right
From MDC
[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.
- Initial value: see individual properties for details
- Applies to: all elements
- Inherited: no
- Percentages: N/A
- Media:
visual - Computed value: see individual properties
[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