Home Menu

viewBox

marker

The viewBox SVG attribute specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Syntax

Value

[ <min-x>,? <min-y>,? <width>,? <height> ]

Default

(none)

Examples

<height>

<min-x>

<min-y>

<width>

Internal

markerHeight

markerUnits

markerWIdth

orient

preserveAspectRatio

refX

refY

External

World Wide Web Consortium (W3C)

pattern

The viewBox SVG attribute specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Syntax

Value

[ <min-x>,? <min-y>,? <width>,? <height> ]

Default

(none)

Examples

<height>

<min-x>

<min-y>

<width>

Internal

height

href

patternContentUnits

patternTransform

patternUnits

width

x

y

External

World Wide Web Consortium (W3C)

svg

The viewBox SVG attribute specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Syntax

Value

[ <min-x>,? <min-y>,? <width>,? <height> ]

Default

(none)

Examples

<height>

<min-x>

<min-y>

<width>

Internal

height

preserveAspectRatio

transform

width

x

y

zoomAndPan

External

World Wide Web Consortium (W3C)

symbol

The viewBox SVG attribute specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Syntax

Value

[ <min-x>,? <min-y>,? <width>,? <height> ]

Default

(none)

Examples

<height>

<min-x>

<min-y>

<width>

Internal

height

preserveAspectRatio

refX

refY

width

x

y

External

World Wide Web Consortium (W3C)

view

The viewBox SVG attribute specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Syntax

Value

[ <min-x>,? <min-y>,? <width>,? <height> ]

Default

(none)

Examples

<height>

<min-x>

<min-y>

<width>

Internal

preserveAspectRatio

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms