Menu Home

scale

osbo.com | CSS | Properties | scale

The scale CSS property accepts 1-3 values, each specifying a scale along one axis, in the order X, Y, and Z.

Syntax

CSS

scale: value;

JS

object.style.scale = "value";

Values

<'scale'> = none | <number>{1,3}
none

No scale.

<number>

An integer or zero or more decimal digits followed by a dot (.) followed by one or more decimal digits. The first character may be preceded by a sign (- or +). The last character may be succeeded by an exponent (e or E) and an integer.

Initial

none

Examples

none

number

JS

Internal

backface-visibility

perspective

perspective-origin

rotate

transform

transform-box

transform-origin

transform-style

translate

External

World Wide Web Consortium (W3C)