border-top

The border-top property is a shorthand property for setting the width, style, and color of an element's top border.

border-top: [ <border-width> || <border-style> || <'border-top-color'> ] | inherit
Initial: medium, none, value of the color property
Applies To: all elements
Inherited: no
Percentages: NA
Media: visual

DOM

Δ

[window.]document.getElementById("element-id").style.borderTop = "border-top-color border-top-style border-top-width";

Example | color | color

Δ

Example | color | transparent

Δ

Example | style | dashed

Δ

Example | style | dotted

Δ

Example | style | double

Δ

Example | style | groove

Δ

Example | style | hidden

Δ

Example | style | inset

Δ

Example | style | none

Δ

Example | style | outset

Δ

Example | style | ridge

Δ

Example | style | solid

Δ

Example | width | length

Δ

Example | width | medium

Δ

Example | width | thick

Δ

Example | width | thin

Δ

Example | DOM

Δ

References

Δ