Check out a free preview of the full jQuery Plugins and jQuery UI course:
The "Position Widget" Lesson is part of the full, jQuery Plugins and jQuery UI course featured in this preview video. Here's what you'd learn in this lesson:
“Position” eliminates manual relative positioning math - setting one element relative to another, accounting for dimensions to ensure the element is visible. This widget has built-in “collision detection” that supports both “flipping” and “fitting”, or even a combination of both. You can also use “option” to animate the actual positioning, including a “bounce” effect.