makePositioned :: Element |
To revert back to element's original CSS position, use undoPositioned().
Example
Consider the following case:
<p>lorem […]</p> <div id="container"> <div id="element" style="position: absolute; top: 20px; left: 20px;"></div> </div>
To position div#element relatively to it's parent element:
$('container').makePositioned(); // -> HTMLElement
See also
Element: undoPositioned
|
Prototype API 1.5.0 - prototypejs.org