HTML and CSS Reference
In-Depth Information
Name
border
Values:
<'border-width'> || <'border-style'> || <color>
Initial value:
Refer to individual properties
Applies to:
All elements
Inherited:
No
Computed value:
Same as declared value
Description:
A shorthand property that defines the width, color, and style of an element's border. Note that
while none of the values are actually required, omitting a border style will result in no border
being applied because the default border style is none .
Examples:
h1 {border: 2px dashed olive;}
a:link {border: blue solid 1px;}
p.warning {border: double 5px red;}
Search WWH ::




Custom Search