border-top

Defines the properties for the top border for the element.

Platform Support

IENetscapeMozillaOperaSafari
4.0+6.0+1.0+4.0+1.0+

Usage

[color] [style] [width]

Values

*Specify a border-top value not on this list.
inheritInherit the value from the parent element.
#ffffffborder-top-color: Border color placeholder. e.g. #ffffff = white
noneborder-top-style: No border.
dottedborder-top-style: Dotted line.
dashedborder-top-style: Dashed line.
solidborder-top-style: Solid line.
doubleborder-top-style: Double line.
grooveborder-top-style: Grooved line.
ridgeborder-top-style: Ridged line.
insetborder-top-style: Inset line.
outsetborder-top-style: Outset line.
hiddenborder-top-style: Hidden border.
thinborder-top-width: Thin border.
mediumborder-top-width: Medium border.
thickborder-top-width: Thick border.

Example

To specify a thick, red, dashed top border, use the following syntax: .mybordertopclass {border-top: thick red dashed;}.

Remarks

Use the border-top property as a shortcut to typing out all of the individual border-top properties separately. You can specify any valid value for a border-top- property as part of border-top.

Availability

W3C CSS2

Related

text_css aptana_docs