/

HTML / CSS / JavaScript Tutorial

CSS Property: border

[this page | pdf | back links]

The CSS (CSS1) border property is a shorthand property combining (up to) 3 of the border properties.

 

Valid property values (other than inherit and initial) are defined by the elements of the shorthand. Shorthand elements (in the order in which they appear):

 

-        border-width

-        border-style

-        border-color

 

Default Value:

See individual properties

JavaScript syntax:

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

Inherited:

No

Animatable:

See individual properties

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile