B.14. border-bottom-width, border-left-width, border-right-width, border-top-width

Each of these properties sets the width of the border along one side of an element.

Inherited: No

See also: Section B.19border-width

B.14.1. Value

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

Initial value: medium (0 in Netscape 4)

B.14.2. Compatibility

CSS Version: 1

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

Note that Netscape 4's default value is 0, so you need to set the border width as well as the style for borders to appear in that browser.

B.14.3. Example

This style rule puts 2-pixel borders along the left and right and 1-pixel borders along the top and bottom of blockquote elements: ...

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.