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 specify a border-width for the border to appear in that browser.

B.19.3. Example

This style rule puts thick borders on the top and bottom and thin borders on the left and right sides of blockquote elements:

blockquote {
  border-style: solid;
  border-width: thick thin;
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset