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.

Syntax

<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.

Example

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