Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


MARGINHEIGHT Attribute | marginHeight Property

Sets or retrieves the top and bottom margin heights before displaying the text in a frame.

Syntax

HTML Scripting
< ELEMENT MARGINHEIGHT = iHeight ... >
object . marginHeight [ = iHeight ]

Possible Values

iHeight Variant that specifies or receives the height, in pixels.

The property is read/write. The property has a default value of 0 .

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 marginHeight is specified but marginWidth is not, marginWidth is set to 0.

If the document hosted in the frame or iframe has margin-top or margin-bottom properties set either through Cascading Style Sheets (CSS) or through the topMargin or bottomMargin properties of the body element, then this property is ignored.

Standards Information

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

Applies To

[ Object Name ] Platform Version
Win16:
Win32:
Windows CE:
Unix:
Mac:
 
FRAME , IFRAME , LAYOUTRECT
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.