This property controls the color of the top border of an element's
rendering box. If no border-color is specified for an element's border,
the value of the 'color' property is used instead.
Allowed Values
inherit
CSS2
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
transparent
CSS2
Type: Explicit
Description:
The border is transparent (with any accompanying 'border-width' thickness)
- eg: elements below it shine through.
[color]
CSS2 | IE4
| O3.5
Type: Explicit
Description:
Sets the border to the indicated color value.
Example
Ext/Doc: div {
border-top-color: green }
In-Line: <divSTYLE="border-top-color:
#008000">this is a Green Test</div>
Browser Peculiarities
Internet Explorer
4.0:
- This property does not apply to input TYPE=checkbox/radio fields
- Applying border properties to list items skews the normal placement
of the marker
4.0+:
- This property does not apply to inline elements.
- The default 'border-style' for form fields and tables/table cells
is not "none."
Opera
3.5:
- Borders have no effect on images, tables, table cells and form fields.