Photo pages - Center images

Pramod Viswanath

Joined: 2008-05-16
Posts: 6
Posted: Mon, 2008-10-20 07:06

Hi,

I am currently using Gallery version = 2.2.3 with X_treme theme. I need to center the images on photo pages and I am unable to find a way even after altering the CSS file. Any help is much appreciated!

Awaiting some response...

Thanks in advance.
Pramod

 
wordman
wordman's picture

Joined: 2008-12-28
Posts: 25
Posted: Tue, 2008-12-30 03:57

As an FYI given the fact that your post is from May, I wanted to mention how to accomplish this just in case anyone else happens across your post. I say all this because I am assuming that you figured things out by now. If not...

Edit the themes.css file (I'm using Matrix but I would imagine the css files are the same or similar) and make your code look like this:

body.gallery {
width: 760px;
margin: 0 auto 0 auto;
padding: 0;
}

The width can be set to whatever you want, but 760 is pretty common. The margin:0 auto 0 auto; will center your gallery. I just did it to mine and it works nicely.

Best of luck on 2009!

Cheers,

wordman