This is a shorthand property which allows an author to specify
the border-width, border-style, and border-color for the top border
of an element. If no color is specified, the value will be taken
from the 'color' property.
Allowed Values
inherit
CSS2
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
In-Line: <divSTYLE="border-top: 10px outset #ffffff">this
is a beautiful 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."
- Using a 'border-style' of "double" with 'border-width' set to "thin"
produces a solid, thin border, not a double border.
5.0:
- A static size is given to input TYPE=checkbox/radio fields.
Borders are rendered within this. Depending on the border-width,
this can possibly obscure part or all of the field.
Opera
3.5:
- Borders have no effect on images, tables, table cells and form fields.
- Using a 'border-style' of "double" with 'border-width' set to "thin"
produces a solid, thin border, not a double border.