/

HTML / CSS / JavaScript Tutorial

CSS Property: border-right

[this page | pdf | back links]

The CSS (CSS1) border-right property is a shorthand property combining all the main right border properties.

 

Valid property values (other than inherit or initial) are defined by the elements of the shorthand and are:

 

-        border-right-width

-        border-right-style

-        border-right-color

 

Missing properties are given their default values.

 

Default Value:

medium none color

JavaScript syntax:

e.g. object.style.borderRight="2px solid red"

Inherited:

No

Animatable:

Yes

 

In the default value, color is the CSS colour of the element.

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile