Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

marginHeight property

Sets or retrieves the top and bottom margin heights before displaying the text in a frame.

Syntax

HRESULT value = object.put_marginHeight( v);HRESULT value = object.get_marginHeight(* p);

Property values

Type: VARIANT

the height, in pixels.

0

Default value.

Remarks

Margins cannot be less than 1 pixel or so large that the text cannot be displayed.

If IHTMLFrameBase::marginHeight is specified but IHTMLFrameBase::marginWidth is not, IHTMLFrameBase::marginWidth is set to 0.

If the document hosted in the frame or iframe has IHTMLRuleStyle::marginTop or IHTMLRuleStyle::marginBottom properties set either through Cascading Style Sheets (CSS) or through the IHTMLBodyElement::topMargin or IHTMLBodyElement::bottomMargin properties of the body element, then this property is ignored.

See also

IHTMLFrameBase::marginWidth

 

 

Community Additions

ADD
Show:
© 2015 Microsoft