class method Element.makePositioned

View source on GitHub →

Element.makePositioned(element) → Element

Allows for the easy creation of a CSS containing block by setting element's CSS position to relative if its initial position is either static or undefined.

To revert back to element's original CSS position, use Element.undoPositioned.

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.