border-width

Specifies the width of the border.

Platform Support

IENetscapeMozillaOperaSafari
4.0+4.0+1.0+5.0+1.0+

Usage

[border-top-width] [border-right-width] [border-bottom-width] [border-left-width]. Example values: 2px 4px 2px 4px, 0.25in 05.in, thin, etc.

Values

*Specify a border width value not on this list.
inheritInherit the value from the parent element.
thinThin border.
mediumMedium border.
thickThick border.

Example

To specify a border width that is 2px on top, 1px on the right and bottom, and 2px on the left, use the following syntax: .myborderclass {border-width: 2px 1px 1px 2px;}.

Remarks

You can also specify a fixed pixel value for border-width.

You can specify up to four different widths for the border of an element.

Availability

W3C CSS2

Related

text_css aptana_docs