Back to examples

Anchor a popup to an HTML element in the page

Using the anchor method with offsets defined the popup is held in place at the location of the anchor. Resizing the browser or scrolling the page will show this. In this demo an offset of 50px vertically and 50px horizontally has been applied. Using the offsets pixel perfect positioning can be achieved.

This is the location of the anchor