CSS/Properties/border-right

From W3C Wiki
< CSS‎ | Properties
Revision as of 18:01, 19 July 2011 by Plehegar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

border-right

The border-right property is a shorthand property for setting the width, style, and color of the right border of a box.

Description

Values [ <border-right-width> || <border-right-style> || <border-right-color> ] | inherit
Initial value See individual properties
Applies to all elements
Inherited No


Values

  • inherit
    Takes the same specified value as the property for the element's parent.


And see also individual properties


Example

Example A

[style.css]

 h1 {
   border-right: 1px solid red;
 }

[index.html]

  <body>
    <h1>CSS border property example</h1>
  </body>

Csslist2 border.png

CSS Reference

The CSS specification defines the border-right property in 8.5.4 Border shorthand properties.

See also