Name

units — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The unit of measure for the height and width dimensions of the element. Internet Explorer appears to treat all settings as pixels.

Example

document.all.myEmbed.units = "ems"

Value

Any of the following case-insensitive constants (as a string): pixels | px | em.

Default

pixels

Get Dynamic HTML: The Definitive Reference 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.