HTML frame marginwidth Attribute
HTML <frame> tag
Definition and Usage
The marginwidth attribute specifies the top margin between the content and
the left and right side of the frame.
Syntax
<frame marginwidth="pixels" />
|
Syntax Example
<frame marginwidth="50" />
|
Attribute Values
Value |
Description |
pixels |
Specifies the left and right side margin of the frame
in pixels. Note: You cannot set a different value for left and
right side 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" marginwidth="50" />
<frame src="frame_b.htm" marginwidth="100" />
</frameset>
</html>
|
Try-It-Yourself Demos
frame
marginwidth attribute example
Set the margin width of the frame-content.
HTML <frame> tag
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|