Home » CSS Tutorial » CSS Properties » border
border
CSS Property Info :
| Syntax: |
border: <value> |
| Possible Values: |
<border-width> || <border-style> || <color>
|
| Initial Value: |
Not defined |
| Applies to: |
All elements |
| Inherited: |
No |
CSS Browser Support :
Internet Explorer 4+
Netscape 4+
Opera 3.6+
W3C's CSS Level 1+
CSS Profile 1.0
CSS Property Description :
The border property is a shorthand for setting the width, style, and color of an element's border.
Examples of border declarations include:
H2 { border: groove 3em }
A:link { border: solid blue }
A:visited { border: thin dotted #800080 }
A:active { border: thick double red }
The border property can only set all four borders; only one border width and border style may be given. To give different values to an element's four borders, an author must use one or more of the border-top, border-right, border-bottom, border-left, border-color, border-width, border-style, border-top-width, border-right-width, border-bottom-width, or border-left-width properties.
CSS Bugs / Problems :
none
Adapted by style-sheets.com, maker of Style Studio, powerful CSS Editor for Windows.
Copyright © John Pozadzides and Liam Quinn. All rights reserved.
Home » CSS Tutorial » CSS Properties » border
|