Entire Gallery is not centered - the whole thing is on the left of the page - help!

michellemb

Joined: 2006-03-31
Posts: 5
Posted: Sat, 2008-06-14 04:02

I'm not concerned about text alignment, my problem is that my entire embedded gallery frame is not centered - it's jutitified to the left of the page. I have tried for hours to fix this but NOTHING has worked. At this point my head is spinning.

Gallery (embedded) is here - you'll see what I mean.

http://www.anellipsis.com/wp-gallery2.php

I am kind of new to this so if you could be as specific as possible with any potential solutions, that'd be great. THank you!!

Mich :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-06-14 04:16

in your embedded.css add/change/modify:

.g2_column {
width: 900px;
margin: 0 auto 0 auto;
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bluhoney

Joined: 2008-06-27
Posts: 2
Posted: Fri, 2008-06-27 14:05

Exact same issue here, but with gallery embedded into drupal and so i cannot find an embedded.css to modify, nor anything obvious elsewhere. Spent a good few hours trawling through the css files with my limited knowledge, and over the net searching as well, still no luck.

site is http://www.w4sted.net/?q=gallery

anyone that can help out here? sure it's a fairly simple change, i just cannot find it :(

thanks in advance

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-06-27 14:31

I don't know anything about drupal. The link you provided does not have that behavior, but it could be the screen resolution I have at work.
Try adding the code to a existing css.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bluhoney

Joined: 2008-06-27
Posts: 2
Posted: Fri, 2008-06-27 14:50

Thanks for the quick response Dave, having checked further this behaviour only appears in firefox, and so I guess i'll leave it for now.

Was referring to the album containing frame, which for some reason (under firefox) will align to the left. However, as your knowledge with drupal is as limited as my knowledge of .css i'll put it down as one todo later and just thank you for the response (have tried modifying the obvious .css for drupal embedding with no sucess, ohh well) :)

cheers

blu

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-06-28 02:04

Assuming this css:
/themes/wabi/style.css
there is more than 6 css to choose from! We applications (WP and G2 need to make this better)
Anyway:

table {
	/* make <td> sizes relative to body size! */
	font-size: 1em;
	width: 100%;
	margin: 0 auto 0 auto;
}

It might make other tables in your site change so you should verify it works on other pages as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
michellemb

Joined: 2006-03-31
Posts: 5
Posted: Wed, 2008-07-02 01:42

I'm still having the same problem as above. I've tried to paste this code into the stylesheet and WPG2 Page Style & CSS Options tab for the CSS Style Elements Header:

.g2_column {
width: 900px;
margin: 0 auto 0 auto;
}

It's just not lining up in the center no matter what I try. I've never had such a stubborn gallery problem. Any advice is welcome please.

M

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2008-07-02 06:39

YOU have:
.g2_column {margin: 0px 1px 0px 12px;width: 738px} some place in your css
Get fire fox and the dev tool to see for your self.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
michellemb

Joined: 2006-03-31
Posts: 5
Posted: Thu, 2008-07-10 22:52

I solved the problem - it wasn't an issue with the css of gallery, it was the css of the theme & colorpack I had installed.

I just added

"margin: 0 auto 0 auto"

and it resolved itself to the center. Thx.

Mich