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:

blockquote {
  border-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 2px;
  border-right-width: 2px;
}

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

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