Example

A simple border-top-width property example:

Laboratory

description & Usage

We determine the width of the upper border with the border-top-width property.

Informations

# Description
Default Value medium
Inherited no
Animatable yes
Version CSS1
JavaScript syntax object.style.borderTopWidth="5px"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
border-top-width

Syntax

Values

Values Description
medium
thin
thick
length
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.