O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

border-right

Values:

<'border-width'> || <'border-style'> || <color>

Initial value:

See individual properties

Applies to:

All elements

Inherited:

No

Computed value:

See individual properties

Description:

A shorthand property that 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;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required