/

HTML / CSS / JavaScript Tutorial

CSS Property: border-top

[this page | pdf | back links]

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

 

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

 

-        border-top-width

-        border-top-style

-        border-top-color

 

Missing properties are given their default values.

 

Default Value:

medium none color

JavaScript syntax:

e.g. object.style.borderTop="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