B.132. zoom

This nonstandard property, supported by Internet Explorer for Windows version 5.5 or later, lets you magnify or reduce the size of an element and all its contents.

Inherited: No

B.132.1. Value

A magnification factor, either as a floating point number (1.0 is the normal size) or as a percentage (100% is the normal size), or the constant value normal.

Initial value: normal

B.132.2. Compatibility

CSS Version: n/a

This property is supported by Internet Explorer for Windows version 5.5 or later only.

B.132.3. Example

This style rule sets all images in the document to appear at half their normal size:

img {
  zoom: 50%;
}

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.