/

HTML / CSS / JavaScript Tutorial

CSS Property: border-bottom

[this page | pdf | back links]

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

 

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

 

-        border-bottom-width

-        border-bottom-style

-        border-bottom-color

 

Missing properties are given their default values.

 

Default Value:

medium none color

JavaScript syntax:

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