CSS border-top-width property

Description

CSS border-top-width property defines width for the top side border of a block.

Syntax

border-top : medium | thin | thick | length

Property values

mediumDefault

medium value represents medium sized border for the top side. thin<medium<thick

border-top-width: medium;

thin

thin value defines thin line border for the top side.

border-top-width: thin;

thick

thick value defines a thick line border for the top side.

border-top-width: thick;

length

length defines the line width of border for the top side. The used units might be px, in, em, pt.

border-top-width: 10px;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
If the border-top-style is none then the border-top-width is of no use i.e. represents 0px.
×

Ctrl+D