ScanSkill

border-top

The border-top property is defined to set the top border of an element.

Syntax

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

Example

.mydiv{
	border-top: 1px solid red;
}

Property Values

border-width: sets the width of the top border.

border-style: sets the style of the top border.

border-color: sets the color of the top border.

none: sets no top border.(default value)