Latest web development tutorials

HTML iframe marginheight property

HTML iframe tag Reference Manual HTML <iframe> tag

Examples

50 pixels with the top and bottom blank margins <iframe>:

<iframe src="demo_iframe.htm" marginheight="50">
</iframe>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support marginheight property.


Definition and Usage

HTML5 does not support the <iframe> marginheight property. Use CSS instead.

marginheight attribute specifies the blank margin at the top and bottom of the <iframe> content, in pixels.


grammar

<iframe marginheight="pixels">

Property Value

描述
pixels 规定 <iframe> 内容的顶部和底部的空白边距,以像素计。


HTML iframe tag Reference Manual HTML <iframe> tag