You are here: Reference > HTML > attributes > marginHeight (frame, iframe)

marginHeight attribute (frame, iframe)

Browser support:
Sets the top and bottom margins for a frame element.
JavaScript page for this attribute: marginHeight. You can find other example(s) there.

Possible values:

String that sets the height of the margin, with an integer optionally followed by a 'px' (pixel) unit designator. Negative values are not allowed.
Default: 0.

Example HTML code 1:

This example illustrates the use of the marginHeight attribute:
<iframe src="frame.htm" width="250px" height="250px" marginheight="200px"></iframe>
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content