javascript OBJECT hspace, vspace
| hspace, vspace | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
Provide the pixel measure of horizontal and vertical margins surrounding an object element. The hspace property affects the left and right edges of the element equally; the vspace affects the top and bottom edges of the element equally. These margins are not the same as margins set by style sheets, but they have the same visual effect. |
|
| Example | |
document.getElementById("myObject").hspace = 5;
document.getElementById("myObject").vspace = 8;
|
|
| Value | |
Integer of pixel count as string. |
|
| Default | |
0 |
|
Previous: javascript OBJECT isDisabled
1383,Nickname,Homepage or email,Comments here,Add comment
