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

marginWidth attribute (frame, iframe)

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

Possible values:

String that sets the width of the margin, with an integer optionally followed by a 'px' (pixel) unit designator. Negative values are not allowed.
Default: this attribute has no default value.

Example HTML code 1:

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

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content