Web4College

CSS stroke-width property

src

Description

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

Syntax

stroke-width : +ve length | percentage

Property values

+ve lengthDefault

1

It specifies the default width of stroke in some unit.

stroke-width: 1px;
Try it

+ve length

50

It specifies the width of stroke in some unit.

stroke-width: 50px;
Try it

percentage

20

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

stroke-width: 20%;
Try it

Applicable to

It applies to inline boxes and SVG shapes.