You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

domref



align


Specifies how the IFRAME is to be aligned in the containing element.

Syntax

sAlign = iFrameElement.align
 
iFrameElement.align = sAlign
 

Parameters

sAlign is a string with one of the values given in the Notes section below.

Example

i = document.getElementById("first-frame");
 
i.align = "top";
 

Notes

Possible values for align are "top", "middle", "bottom", "left" and "right." The latter two cause the IFRAME to float to the current right or left margin. The default value for align is bottom. The align attribute is deprecated in HTML 4.0

Specification

DOM Level 2 -- HTMLIFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX