How to center gallery block horizontally on the page?

Comments

W32’s picture

without views...

kroimon’s picture

I think that hardly depends on your Drupal theme and you have to do it manually using CSS.
The class of the Galleria div element you want to center is "galleria-content".

W32’s picture

How to ?

div.galleria-content
{
margin: 0 auto;
}

but nested div with class "galleria-container" contains width from galleria settings and aligned to left border of div.galleria-content.

kroimon’s picture

Status: Active » Fixed

That hardly depends on your Drupal theme among other things and is way beyond the scope of this module or its documentation.

flacoman91’s picture

Here's an example where I had to do this with galleria using the version 7:
www.jsuki.com

I'm pretty new to this whole web stuff and figured it out after playing with firebug and trying different themes.

I'm using a customized Zen theme, fixed width. Using a fluid width theme, I couldn't center everything.

Hope that helps.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.