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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access