Name
HSPACE, VSPACE — NN all IE all HTML 3.2
Synopsis
HSPACE=pixelCount
VSPACE=pixelCount
Optional
Define a margin that acts as whitespace padding around the visual
content of the IMG
element. The
HSPACE
establishes a margin on the left and right
sides of the image rectangle; the VSPACE
establishes a margin on the top and bottom sides of the image
rectangle. Use the margin or padding attributes to duplicate the same
functionality with style sheets because these attributes are
deprecated in HTML 4.0.
Example
<IMG SRC="desk3.gif" VSPACE=10 HSPACE=10>
Value
Integer representing the number of pixels for the width of the margin
on the relevant sides of the IMG
element’s
rectangle.
Default
0
Object Model Reference
- NN
[window.]document.imageName.hspace
[window.]document.images[i].hspace
[window.]document.imageName.vspace
[window.]document.images[i].vspace
- IE
[window.]document.imageName.hspace
[window.]document.images[i].hspace
[window.]document.imageName.vspace
[window.]document.images[i].vspace
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.