Example

A simple border property example:

Laboratory

description & Usage

The border feature is displayed in several brief modes, which include:

Border/margin width
Border/margin style
border color

Informations

# Description
Default Value medium none color
Inherited no
Animatable yes
Version CSS1
JavaScript syntax object.style.border="3px solid blue"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
border

Syntax

Values

Values Description
border-width Determines the width of the border.
border-style Specifies the border style.
border-color Determines the color of the border.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.