css - Position colorbox relative to a parent div -
is there way can position colorbox relative parent div? need appear right of specific element , not in position relative entire page.
after dom has loaded, can move #colorbox element. example:
$('#colorbox').appendto('#newelement'); then, when assign colorbox element, you'll want specify position instead of letting try center in visitors viewport.
$('a.example').colorbox({top:0, right:0}); and of course parent object need have positioning colorbox positioned relative it.
#newelement { position:relative; }
Comments
Post a Comment