ScanSkill

border

The border property sets a border around an element.

We can set border-width , border-style and border-color.

Syntax

border: border-width border-style border-color | none;

Example

.mydiv{
	border: 1px solid red;
}

Property Values

border-width: sets the width of the border.

border-style: sets the style of the border.

border-color: sets the color of the border.

none: sets no border. This is the default value.