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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -