Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to center gallery block horizontally on the page?
How to center gallery block horizontally on the page?
Comments
Comment #1
W32 CreditAttribution: W32 commentedwithout views...
Comment #2
kroimon CreditAttribution: kroimon commentedI 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".
Comment #3
W32 CreditAttribution: W32 commentedHow to ?
but nested div with class "galleria-container" contains width from galleria settings and aligned to left border of div.galleria-content.
Comment #4
kroimon CreditAttribution: kroimon commentedThat hardly depends on your Drupal theme among other things and is way beyond the scope of this module or its documentation.
Comment #5
flacoman91 CreditAttribution: flacoman91 commentedHere'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.