- Position an element relative to the other element.
It's used as the jQuery UI position util. But this plugin only supports my
/at
/of
options.
$('#box-1').position({
of: '#container'
});
$('#box-2').position({
my: 'left top',
at: 'left top',
of: '#container'
});
$('#box-3').position({
at: 'right bottom',
of: '#container'
});
$('#box-4').position({
my: 'right+20 top-10%',
at: 'right top',
of: '#container'
});