HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

border-top-style

Description

The border-top-style property for CSS sets the style of the top border of a box.

Syntax

CSS

border-top-style: value;

JS

object.style.borderTopStyle = "value";

Values

<'border-top-style'> = <line-style>
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
dashed

A dashed line. A series of square-ended dashes.

dotted

A dotted line. A series of round dots.

double

A double line. Two parallel solid lines with some space between them.

groove

A grooved line. Looks as if it were carved in the canvas.

hidden

A hidden line. Same as none, but has different behavior in the border conflict resolution rules for border-collapsed tables.

inset

An inset line. Looks as if the content on the inside of the border is sunken into the canvas.

none

No line.

outset

An outset line. Looks as if the content on the inside of the border is coming out of the canvas.

ridge

A ridged line. Looks as if it were coming out of the canvas.

solid

A single line.

Initial

none

Examples

1 · dashed

2 · dotted

3 · double

4 · groove

5 · hidden

6 · inset

7 · none

8 · outset

9 · ridge

10 · solid

11 · JS