CSS stroke-width property

Description

CSS stroke-width property represents the width of the stroke.

Syntax

stroke-width : +ve length | percentage

Property values

+ve lengthDefault

It specifies the default width of stroke in some unit.

stroke-width: 1px;

+ve length

It specifies the width of stroke in some unit.

stroke-width: 50px;

percentage

It is same as 'scroll' but it provides vertical scrollbar only when the content overflows out of the box.

stroke-width: 20%;

Applicable to

It applies to inline boxes and SVG shapes.

#CSS digger
Was this article helpful?

 
×

Ctrl+D