Name

border-right

Values:

[ <border-width> || <border-style> || <border-color> ] | inherit

Initial value:

Not defined for shorthand properties.

Applies to:

All elements.

Inherited:

No.

Computed value:

See individual properties (border-width, etc.).

Description:

This shorthand property defines the width, color, and style of the right border of an element. As with border, omission of a border style will result in no border appearing.

Examples:

img {border-right: 30px dotted blue;}
h3 {border-right: cyan 1em inset;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.