B.19. border-width

The border-width property sets the width of the border surrounding the selected element(s).

The widths for each side may be set individually using the border-bottom-width, border-left-width, border-right-width, and border-top-width properties.

Inherited: No

B.19.1. Value

thin, medium, thick, or any CSS length measurement.

You can specify from one to four different values to specify different border widths for each side of the element, as shown in Table B-2.

Initial value: medium (0 in Netscape 4)

B.19.2. Compatibility

CSS Version: 1

Works in all CSS-compatible browsers, including Internet Explorer 4 and Netscape 4.

Note that Netscape 4 defines a default border width of 0, so in addition to a border-style, you must also ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.