410 Chapter 23 – Cascading Style Sheets
Properties
Web Design in a Nutshell, eMatter Edition
the content. More than one value will be interpreted the same as described
for themargin property (top, right, bottom, left).
border-top-width, border-right-width, border-bottom-width,
border-left-width
Values:
thin|medium|thick|length
Example:
P.sidebar { border-right-width: medium; border-bottom-width: thick
}
Applies to:
All elements
Inherited:
No
These properties specify the border widths of the respective sides of an
element’s box. The keywordsthin,medium, andthickwill be interpreted
by the browser and are consistent throughout the document (i.e., they are not
affected by the font size of the element). You can also specify a length unit.
border-width
Values:
thin|medium|thick|length
Example:
P.warning { border-width: thin }
Applies to:
All elements
Inherited:
No
This is a shorthand property for specifying the width of the border for all four
sides of the element box. A single value will set the same border width for all
four sides of the box. More than one value will be interpreted as described for
themargin property (top, right, bottom, left).
border-color
Values:
color name|RGB value
Example:
BLOCKQUOTE{ border-color: red blue lime yellow }
Applies to:
All elements