Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

viewBox

marker

Description

The viewBox attribute for SVG 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>

markerHeight

markerUnits

markerWIdth

orient

preserveAspectRatio

refX

refY

World Wide Web Consortium (W3C)

pattern

Description

The viewBox attribute for SVG 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>

height

href

patternContentUnits

patternTransform

patternUnits

width

x

y

World Wide Web Consortium (W3C)

svg

Description

The viewBox attribute for SVG 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>

height

preserveAspectRatio

transform

width

x

y

zoomAndPan

World Wide Web Consortium (W3C)

symbol

Description

The viewBox attribute for SVG 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>

height

preserveAspectRatio

refX

refY

width

x

y

World Wide Web Consortium (W3C)

view

Description

The viewBox attribute for SVG 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>

preserveAspectRatio

World Wide Web Consortium (W3C)

HomeMenu