Forums / Templates, Stylesheets, Page Layout / Justification of Columns

Justification of Columns

Locked

Views: 1,001

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 Apr 2010, 7:43 PM
#1
halollet avatar

halollet

New Zenner

Join Date:
Mar 2010
Posts:
66
Plugin Contributions:
0

Justification of Columns

So I added in this mod
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=77

And it works great until I uploaded products until I got 2 pages.

I have 9 products per page, 3 x 3 grid.

Categories with 1 product show up with the product centered, with 2, they center the 2 products nicely.

However, after more than 3 products it starts right justifying the products and looks really silly. With 10 products the 10th product show up on the 2nd page screen all by itself but it is over to the right.
Which looks absolutely horrible.

So, how do I fix this? I would like the products to be centered like what happens with 1 or 2 products. Failing that, if they could just be left justified that would be a good second.

Attributes of the product display, and its the same for the centered and not centered products;
html

body #indexBody

div #mainWrapper

table #contentMainWrapper

tbody

tr

td

div #indexProductList .centerColumn

div #productListing

div .centerBoxContentsProducts centeredContent back

THanks!

28 Apr 2010, 8:31 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Justification of Columns

Your description is OK but seeing it would assist greatly
Where is your site?

Zen-Venom Get Bitten

28 Apr 2010, 9:44 PM
#3
halollet avatar

halollet

New Zenner

Join Date:
Mar 2010
Posts:
66
Plugin Contributions:
0

Re: Justification of Columns

Your description is OK but seeing it would assist greatly
Where is your site?

Yeah I know, but if I post the link anywhere word could get back to the government some how some way. And if it does, I could loose $17,000 of funding that I don't have to pay back.

Its really :censored: annoying....

28 Apr 2010, 11:41 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Justification of Columns

.centerBoxContentsProducts centeredContent back

This is by default supposed to float left (.back), so looking at the rules applied to it in your stylesheet may show why it floats right.
It would take some recoding to figure whether the products are less than 3 on the last page of the listing and apply the "less than col qty" width calculation.

29 May 2010, 10:06 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Justification of Columns

This is what's doing that:

.back {
float:right;
}

I'm not sure why you specified that there, but .back is used in many places. It's float:left; in a stock Zencart installation.

30 May 2010, 10:48 PM
#7
halollet avatar

halollet

New Zenner

Join Date:
Mar 2010
Posts:
66
Plugin Contributions:
0

Re: Justification of Columns

Awesomeness! Cheers!