Syntax
.position( options )
| Option | Type | Description |
|---|---|---|
| my | String | This option specifies the location of the wrapped elements (the ones being re-positioned) to align with the target element or location. By default its value is center. |
| at | String | Specifies the location of the target element against which to align the re-positioned elements. Takes the same values as my option. By default its value is center. |
| of | Selector or Element or jQuery or Event | It identifies the target element against which the wrapped elements are to be re-positioned, or an Event instance containing mouse coordinates to use as the target location. By default its value is null. |
| collision | String | Specifies the rules to be applied when the positioned element extends beyond the window in any direction. By default its value is flip. |
| using | Function() | Called for each wrapped element with a single argument that consists of an object hash with the left and top properties set to the computed target position, and the element set as the function context. By default its value is null. |
| within | Selector or Element or jQuery | Allows you to specify which element to use as the bounding box for collision detection. This can come in handy if you need to contain the positioned element within a specific section of your page. By default its value is window. |