IHTMLInputElement::vspace Property

Sets or retrieves the vertical margin for the object.


HRESULT IHTMLInputElement::get_vspace(long *p);
HRESULT IHTMLInputElement::put_vspace(long v);


  • p
    Pointer to a variable of type long that receives the vertical margin, in pixels.
  • v
    long that specifies the vertical margin, in pixels.

Return Value

Returns S_OK if successful, or an error value otherwise.


This property is similar to the IHTMLInputElement::border property, except the margins do not have color when the object is a link.

When this property is set dynamically for an img or iframe object, the property value will be updated but the display will show no visible change.

See Also