HTML frame marginheight Attribute

Definition and Usage

The marginheight attribute specifies the top margin between the content and the top and bottom of the frame.


<frame marginheight="pixels" />

Syntax Example

<frame marginheight="50" />

Attribute Values

Value Description
pixels Specifies the top and bottom margin of the frame in pixels.Note: You cannot set a different value for top and bottom margin with this attribute.

Browser Support

The attribute is supported in all major browsers.


<frameset cols="50%,50%">
<frame src="frame_a.htm" marginheight="50" />
<frame src="frame_b.htm" marginheight="100" />
Share this article :
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved