Globally centering photos

smartcabbage

Joined: 2013-01-28
Posts: 2
Posted: Mon, 2013-01-28 19:47

Hi,

This is my first post and the first time I have used Gallery as a webmaster. I am trying to find out how to center photos for my client. It is when a visitor clicks on a single image. Looks like this now.
[img]http://www.pattendew.com/proofing/UPLOAD/center-1.jpg[/img]

And when you click that photo, it is bigger and looks like this

[img]http://www.pattendew.com/proofing/UPLOAD/center-2.jpg[/img]

Could someone let me know how to get that photo to center on the page?

Thank you,

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-28 19:53

add:

#gsImageView img {
  margin: 0 auto;
}

to your theme's css

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-28 19:58

BTW there is a integration package for WP<->G2
http://galleryproject.org/node/108749

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
smartcabbage

Joined: 2013-01-28
Posts: 2
Posted: Mon, 2013-01-28 20:22

Thanks for the code. That didn't work though. The images are still left justified?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-28 20:50

I was assuming you were using the matrix theme so you would add that snippet to the bottom of gallery2/themes/matrix/theme.css
if not sent me a link to the offending page.

-s
________________________________
All New jQuery Minislideshow for G2/G3