XML technologies / CSS / Advanced websites with CSS / CSS property reference / zoom

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The property zoom, which is not included in the CSS specification, scales an element and its content.

Inherited: no

Values

The scaling factor, specified as a floating-point number, a percentage or the constant normal.

Default value: normal

Compatibility

CSS version: not part of the CSS specification

Works only in Internet Explorer for Windows, version 5.5 and later.

Example

The following style rule displays all images on a page at half size:

img {
 zoom: 50%;
}

  

 

 

 

back to top