This topic has not yet been rated - Rate this topic

stroke-width property

[This documentation is preliminary and is subject to change.]

Sets or retrieves a value that specifies the width of the stroke on the current object.

Scalable Vector Graphics: Painting, Filling, Stroking and Marker Symbols, Section 11.4Internet Explorer 9

Syntax

stroke-width: <percentage> | <length> | inherit

Property values

percentage

An integer, followed by a % sign. The value is a percentage of the current viewport.

length

A floating-point number, followed by either an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px), that indicates the width of the stroke. (For more information about the supported length units, see CSS Length Units Reference.)

inherit

Indicates that the property takes the same computed value as the property for the element's parent.

CSS information

Applies Toshapes and text content elements
Mediavisual
Inherited1
Initial Value1

Standards information

Remarks

A length value of 0 causes no stroke to be painted. A negative value is an error.

See also

CSSStyleDeclaration
currentStyle
style
SVGTSpanElement
SVGTextPathElement
SVGTextElement
SVGPathElement
SVGRectElement
SVGCircleElement
SVGEllipseElement
SVGLineElement
SVGPolylineElement
SVGPolygonElement
Reference
stroke
strokeDasharray
strokeDashoffset
strokeLinecap
strokeLinejoin
strokeMiterlimit
strokeOpacity

 

 

Build date: 2/16/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ