CSS border-width Property

CSS's border-width property is used to specify the width of an element's border on all four sides. The border-width property is the result of the combination of four properties.




Property Values

Value Description
medium A medium border is specified. This is the default setting.
thin A thin border is specified.
thick This option specifies a thick border.
length Allows you to specify the border's thickness. Learn more about length units.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
border-width 1.0 1.0 1.0 4.0 3.5