HTML DOM align Property
Complete IFrame Object Reference
Definition and Usage
The align property sets or returns how to align an iframe according to
the surrounding text
Syntax
iframeObject.align=left|right|top|middle|bottom
|
Example
The following example aligns the iframe to the right according to the
surrounding text:
<html>
<body>
<iframe src="frame_a.htm" id="frame1"></iframe>
<p>Some text. Some text. Some text. Some text.</p>
<script type="text/javascript">
document.getElementById("frame1").align="right";
</script>
</body>
</html>
|
Try-It-Yourself Demos
Set the
alignment of an <iframe> element
Complete IFrame Object Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|