ZenphotoCMS Forum
Centering - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Centering (/thread-2526.html)



Centering - Pierrot - 2008-03-25

Hi Again,

I know that this topic has been brought up before - I have read all of the post but still need to ask!

I would like to do 2 things...

  1. Center all of my thumbs.
  2. Center the main image.

I played around with the code but couldn't get it to work.

Thanks for your help!

P




Centering - sbillard - 2008-03-25

Centering is a function of the CSS.
http://www.zenphoto.org/support/topic.php?id=2599&replies=16




Centering - Pierrot - 2008-03-25

Thanks for the link - I actually read through that one and tried this...

.image {
border: 0;
text-align:center; / attempt to center Image Page image /
margin-top:0px;
margin-bottom:0px;
padding:0px;
}

in the defult/white/css but with no luck. I hacked around the css for quite a while. I change a lot of thigs but could never get the main image to center. The image I'm talking about is the larger one that come up when you click on a thumbnail.

Am I missing something?




Centering - Pierrot - 2008-03-29

Thanks, I got it!




Centering - macalter - 2008-03-30

PLEASE SHARE Pierrot, I'm still trying (to center thumbnails within the #main "box".




Centering - Pierrot - 2008-03-31

Sorry, I should have been more specific... my 'I got it' was in reference to the main image. For which I used...

image {


text-align: center;
line-height: 0;
}

As for the thumbnails, I've had no luck!

Let me know when you succeed!

P




Centering - macalter - 2008-03-31

I'm "cheating" for now. I resized the #main area to width: 640px; and it's looking better. Will probably tweak it down a bit more as the right side is a bit wide still for 5 thumbs. But, that's for the size I used for thumbs. Yours will vary.