Firefox Tomorrow

web api instance property

HTMLImageElement: vspace property

View on MDN ↗

The deprecated vspace property of the HTMLImageElement interface specifies the number of pixels of empty space to leave empty on the top and bottom sides of the <img> element when laying out the page. It reflects the <img> element’s vspace content attribute.

You should instead use the CSS property margin or its longhand properties to establish margin space around an image.

Value

An integer value specifying the height, in pixels, of the vertical margin to apply to the top and bottom sides of the image.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also