This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.



Sets or retrieves the left and right margin widths before displaying the text in a frame.

Applies to ?
## Notes


Margins cannot be less than 1 pixel or so large that the text cannot be displayed. If marginWidth is specified but marginHeight is not, marginHeight is set to 0. If the document hosted in the frame or iframe has margin-left or margin-right properties set either through Cascading Style Sheets (CSS) or through the leftMargin or rightMargin properties of the body element, then this property is ignored.


See also

Related pages