www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 marginWidth Property
MARGINWIDTH Attribute | marginWidth Property

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

Syntax

HTML<ELEMENT MARGINWIDTH = iWidth... >
Scripting[ iWidth = ] object.marginWidth

Possible Values

iWidthInteger that specifies or receives the width, in pixels.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

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.

Standards Information

This property is defined in HTML 4.0 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

FRAME, IFRAME, LAYOUTRECT

See Also

marginHeight
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG