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

zoom

Description

The zoom property for CSS specifies the magnification of an element.

Syntax

CSS

zoom: value;

JS

object.style.zoom = "value";

Values

<zoom> =
    normal |
    reset |
    <number> |
    <percentage>
normal

100%

reset

No magnification

<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.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

normal

Examples

1 · normal

2 · reset

3 · number

4 · percentage

5 · JS

HomeMenu