Topic: Centering a gallery


I've just starting playing with Juicebox. I'm embedding a gallery on my Web page and I've noticed that by default, the gallery is centered on the page. However, if I limit the dimensions of the gallery, it becomes aligned with the left side of the page. What's the best way to put it back so that it's center on the page it's embedded in?


Re: Centering a gallery

Try changing:

<div id="juicebox-container"></div>

... to:

<div id="juicebox-container" style="margin: 0 auto;"></div>