Menu Home

width

osbo.com | SVG | Attributes | width

filter

The width SVG attribute specifies the width of the element.

Syntax

Value

<length-percentage>

Default

120%

Examples

<length-percentage>

Internal

filterUnits

height

primitiveUnits

x

y

External

World Wide Web Consortium (W3C)

foreignObject

The width SVG attribute specifies the width of the element.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

height

x

y

External

World Wide Web Consortium (W3C)

image

The width SVG attribute specifies the width of the element.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

crossorigin

height

href

preserveAspectRatio

x

y

External

World Wide Web Consortium (W3C)

mask

The width SVG attribute specifies the width of the largest possible offscreen buffer.

Syntax

Value

<length-percentage>

Default

120%

Examples

<length-percentage>

Internal

height

maskContentUnits

maskUnits

x

y

External

World Wide Web Consortium (W3C)

pattern

The width SVG attribute specifies the width of the pattern.

Syntax

Value

<length-percentage>

Default

0

Examples

<length-percentage>

Internal

height

href

patternContentUnits

patternTransform

patternUnits

viewBox

x

y

External

World Wide Web Consortium (W3C)

rect

The width SVG attribute specifies the width of the element.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

height

pathLength

rx

ry

x

y

External

World Wide Web Consortium (W3C)

svg

The width SVG attribute specifies the width of the element.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

height

preserveAspectRatio

transform

viewBox

x

y

zoomAndPan

External

World Wide Web Consortium (W3C)

symbol

The width SVG attribute specifies the width of the element.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

height

preserveAspectRatio

refX

refY

viewBox

x

y

External

World Wide Web Consortium (W3C)

use

The width SVG attribute specifies the width of the element.

This only has an effect if the referenced element defines a viewport.

Syntax

Value

auto | <length-percentage>

Default

auto

Examples

auto

<length-percentage>

Internal

height

href

x

y

External

World Wide Web Consortium (W3C)