Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2005
    Posts
    37
    Plugin Contributions
    0

    Default Column Grid Layout not right

    Some rows are correct while others have spaces where product should be. I've think it has something to do with how many rows are used,but I don't know how to fix it. Here is the example of what's happening.

    http://bodybangles.net/index.php?mai...ath=60_113_119

  2. #2
    Join Date
    May 2005
    Posts
    539
    Plugin Contributions
    0

    Default Re: Column Grid Layout not right

    it think I had the same issue last night but I can't get your site up to see.

    Anyway it is likely that if you are playing with the css that you have tried to set a margin or padding. This I found changes things in a way that the 4th column dropped some images.

    There is a formula in one of the two files that you would have installed that you need to edit as it calculates the width of the square in the grid.

    Not in from of my development PC as it is at home and I am in work at the moment but it did the trick. IF you need futher help I shall try to dig it out later.

  3. #3
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Column Grid Layout not right

    Quote Originally Posted by bodybangles View Post
    Some rows are correct while others have spaces where product should be. I've think it has something to do with how many rows are used,but I don't know how to fix it. Here is the example of what's happening.

    http://bodybangles.net/index.php?mai...ath=60_113_119
    In Admin > Config > Product Listing.
    What do you have for: Product Listing - Columns Per Row

    In Admin > Config > Maximum Values
    What do you have for: Products Listing- Number Per Page

    For testing purposes disable the sale on GN7030 and on GN7013 and the reload the page. Does this change anything?

    I haven't looked to see if you are using a variable width or fixed width template.

    Woody

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Column Grid Layout not right

    Quote Originally Posted by bodybangles View Post
    Some rows are correct while others have spaces where product should be. I've think it has something to do with how many rows are used,but I don't know how to fix it. Here is the example of what's happening.

    http://bodybangles.net/index.php?mai...ath=60_113_119
    I thought it had something to do with every 7th item until I checked some of your other listings.
    The one out of position always seems to be "trapped" against a div in the previous row that has an extra row of text that forces it lower than a subsequent div
    The cure will be in the settings as mentioned above. (imo)

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Column Grid Layout not right

    All of your product cells are of varying heights, perhaps due to varying image sizes and varying lengths of product names.

    Adding this to your stylesheet.css appears to resolve it by giving each cell consistent spacing, and therefore preventing the overlap problems:
    Code:
    .centerBoxContentsProducts { 
      height: 350px;
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jun 2005
    Posts
    37
    Plugin Contributions
    0

    Default Re: Column Grid Layout not right

    Quote Originally Posted by DrByte View Post
    All of your product cells are of varying heights, perhaps due to varying image sizes and varying lengths of product names.

    Adding this to your stylesheet.css appears to resolve it by giving each cell consistent spacing, and therefore preventing the overlap problems:
    Code:
    .centerBoxContentsProducts { 
      height: 350px;
    }
    Cool! by adding the text align command that also solved my problem with my product not being center in the page

    Thanks!

  7. #7
    Join Date
    May 2005
    Posts
    539
    Plugin Contributions
    0

    Default Re: Column Grid Layout not right

    Dr. Byte,

    I have a problem with the 4th column wrapping on to the row below and then a new row starts with three columns again. I had sorted it in firefox by adjusting the calculation in the product_listing.php file at line about line 100.

    But it is still wrapping in IE. I believe it is caused by padding and margin being treated differently by the two browsers. I understand IE adds margin to the out side of a box whilst FireFox calculates it on the inside(of the total width)

    Any ideas how I can adjust either the CSS or the column calculation so it works between the two browsers.

    I have not tried it with IE7 Can I run IE7 and IE6 on the same machine. (I understand that IE7 is treating some CSS mark up "correctly" and this could well change the look of the site again. I have already spent rather to long sorting out overlapping margins and boxes due to these differences. I hope you can shed some light.

    Many thanks in advance.

    MG

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Column Grid Layout not right

    You may have to change the formula to not divide 100 by the number of columns, but instead maybe use 96.

    Alternatively, setting specific width/height parameters may force the box model to not have to self-calculate, and therefore make it display properly.

    What's your site URL ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    May 2005
    Posts
    539
    Plugin Contributions
    0

    Default Re: Column Grid Layout not right

    Dr byte,

    Thank you for your reply. Currently testing locally on test server before going live.

    I have a fixed width on the site so could in theory force the widths. Can you provide the code and where to put it to force it to 4 columns. I can then try both formula amends as you mentioned above and see which gives me the best results.

    I don't seem to be able to fix the width in the style sheet (is this possible or is it the formula)

    Many thanks

    MG

 

 

Similar Threads

  1. column layout grid not working?
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 6 Feb 2011, 10:31 PM
  2. Column Layout Grid Not Working
    By decep in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 15 Jun 2010, 02:33 AM
  3. New Product Listing Error - Column Layout Grid is not working on NewProduct
    By hooai12 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 May 2009, 05:27 PM
  4. Column Layout Grid for Product Listing does not work
    By sandra_r in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Feb 2009, 04:04 AM
  5. Column Layout Grid for Products - 2nd line of prices not bold
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Oct 2008, 02:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg