Front page of shop looks strange..
just_doodling
Posted: Friday, October 23, 2009 4:59:18 AM
Groups: Member

Joined: 10/4/2009
Posts: 30
hi everyone Smile

I had been trying to custom sort the products on the front page of my customised shop.
http://www.zazzle.com/just_doodling

The correct products are displaying..but I seem to have 'gaps' in the rows of products when I log out and look at the shop main page.

instead of having say 4 rows of 3 products each..i have 2 x rows of 3 products
1 x row of one product and then 1 x row of 2 products.

I know changes can take a while to propagate however this has been looking like this now for a few days.

Any help/suggestions/ideas on how I can fix this, or what I might be doing wrong would be excellent and most appreciated

Thanks Smile
LisaMarieArt
Posted: Friday, October 23, 2009 5:43:52 AM

Groups: Member

Joined: 7/4/2008
Posts: 725
Location: Oop North
Am I right in thinking that you have altered your css to stop the titles in the product grid from being cut short?

If so, this is what's causing your problem. The product grid is created with a series of divs which are all set to float left. This makes them all line up next to each other and when they have no more room they drop underneath and continue on.

I'm seeing 2 rows of 3, then a row with 1, and then 2 rows of 3... If you notice the row with only 1 product occurs immediately after the full row where 1 of the products has a 3 line title. It is this 3 line title which is causing your next row to only have 1 product in it.

Zazzle have set the height of each product to auto. If you don't set an exact height in pixels for your floating divs and you end up with one higher than the others, it will protrude beneath the bottom line and cause your next row to start to the right of the protruding div.. in your case it's the middle product.... I don't think I explained that very well so think of it as a chest of drawers. If you have something sticking down from the middle of the top drawer, it will prevent you from pushing the drawer beneath it all the way in because the back of the drawer will snag on the protrusion.


I have a fix for you but I'm not sure if it will work. You don't have direct access to the divs which create the product grid but try and override it with this:

.gridCell {height:270px;}

Hope this helps and I haven't baffled you with my attempt at an explanation to your problem. Smile
WorldGolfTour
Posted: Friday, October 23, 2009 10:28:50 AM

Groups: Member

Joined: 6/5/2009
Posts: 24
Location: San Francisco
Yes, a weird bug.

What it is, it's that product called "Jolly Snowmen Christmas Gift Tags Round Sticker". You notice, it's the only title that takes up two lines of text. It's pushing the products beneath it down a whole row. If you shorten the title of the sticker to one line, you'll see that the page looks right again.
LisaMarieArt
Posted: Friday, October 23, 2009 10:43:13 AM

Groups: Member

Joined: 7/4/2008
Posts: 725
Location: Oop North
WorldGolfTour wrote:
Yes, a weird bug.

What it is, it's that product called "Jolly Snowmen Christmas Gift Tags Round Sticker". You notice, it's the only title that takes up two lines of text. It's pushing the products beneath it down a whole row. If you shorten the title of the sticker to one line, you'll see that the page looks right again.


Technically it's not a bug. It's caused by the way that Zazzle have created their product grid. If it were your own website you could quite easily fix it my making sure you use a clearing div after every set of 3 products. Since we can't do that you either have to:

revert back to truncated titles if you've changed them to show the whole thing
try and override .gridCell with a height in pixels... haven't tried it myself
or shorten your titles as you stated

just_doodling
Posted: Friday, October 23, 2009 10:49:26 AM
Groups: Member

Joined: 10/4/2009
Posts: 30
I've used both of those methods, both shortening the name on that product and altering the grid cell height via the css.

will now sit back and see what happens once the changes take effect Smile Smile

It will either work.. or not.. we will see lololol

thank you both for the assistance, appreciate the help Smile
just_doodling
Posted: Friday, October 23, 2009 1:03:30 PM
Groups: Member

Joined: 10/4/2009
Posts: 30
Just wanted to add.. not sure what of the two fixed it.. however it is now finally all looking as it should..

thank you both very much for your help SmileSmile
WorldGolfTour
Posted: Friday, October 23, 2009 1:53:12 PM

Groups: Member

Joined: 6/5/2009
Posts: 24
Location: San Francisco
Zazzle probably thought adding a clearing div would go against the spirit of the products being a "list" of items. Not good to pollute markup with presentation tags. Maybe we'll see javascript list sorting in the future.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded