Colorbox make the light box fixed when scrolling

itsoft3g picture itsoft3g · Apr 26, 2010 · Viewed 30.4k times · Source

I working with jquery colorbox. When the page content is big and colorbox is opened. Then the color box scrolled along with the page content. I want the colorbox need to be fixed even the background content scrolls.

Please help me out to fix this issue.

Answer

squarecandy picture squarecandy · Sep 15, 2011

perhaps all of these answers are from an earlier version of colorbox, but the "fixed" parameter is now available as of version 1.3.17:

$("a.item").colorbox({fixed:true});

no more mucking about in the CSS required! Thanks colorbox guys!