border

Values

<border-width> | <border-style> | <color>

Applicable to...

All elements

Inherited

No

Description

Border is a shorthand property that defines the width, style and color of the full border of an element. If you don't define a border style no border will be displayed. This property has extra variants for top, bottom, left and right.

Examples

Compatibility

Chrome Firefox Internet Explorer Opera Safari
1.0+ 1.0+ 4.0+ 3.5+ 1.0+




Comment