XML technologies / CSS / Advanced websites with CSS / CSS property reference / border-bottom-style, border-top-style, border-left-style, border-right-style

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The properties border-bottom-style , border-top-style , border-left-style and border-right-style describe the border style for each individual side of an HTML element.

Inherited: no

See also: border-style

Values

All valid constants for border-style.

Default value: none

Compatibility

CSS version: 2

Works in all CSS-capable browsers except Netscape 4.

Example

The following style rule gives blockquote elements a double-line border on the left and right and a single-line border at the top and bottom:

blockquote {
 border-top-style: solid;
 border-bottom-style: solid;
 border-left-style: double;
 border-right-style: double;
}

  

 

 

 

back to top