Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Product images - number per row in grid layout

    I'm not really sure whether this is a css or a coding problem...

    Using the Grid/Columns Layout for displaying product listing, I've set it to 3 per row. I've also used css to apply a drop shadow to the images. All works well, unless there are only 2 products to display and then I get a very broken layout...

    How it should look

    With only 2 products in a category

    Any ideas on how to fix this please (apart from fixing $col_width in modules/product_listing.php to always generate 3 columns - I'd like to retain the flexibility of centering whatever is in the row)?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Product images - number per row in grid layout

    wow so many stylesheets so little time......

    Well The drop shadow appears to stay attached to the right side of the div, so when the div expands.......
    Might adding another div wrapping the image...that stays a fixed width.....

    instead of:
    Code:
    <div1>
          <img>
    </div1>
    Maybe:
    Code:
    <div1>
        <div2>
              <img>
        </div2>
    </div1>
    with this div1 can expand or contract without affecting div2 which is set @ a fixed width to accomodate the image

    Am I even close with this thought or should I dive back into the books some more?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Product images - number per row in grid layout

    Quote Originally Posted by barco57 View Post
    wow so many stylesheets so little time......
    I'm in transition - I was trying out an idea someone else was working on, but I found it too time consuming when trying to locate things, so I'm gradually converting the "included" stylesheets back to a single file (more or less). However, I still need the others there until I've got it whittled down to what I really need.

    The main one is presently named stylesheet_rick

    I tried your method first, but changed it after having had problems...which on reflection could well have been unrelated! I'll take another look at your way. Thanks.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Product images - number per row in grid layout

    I have played with the css dropshadow before (not with zc) and it always had the double divs. Thats the way I've seen it with straight html pages. I just haven't taken the time to determine where to insert the extra div and class in the zc templates.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. Change the number of product images per row
    By rdub in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 31 Oct 2011, 01:37 AM
  2. Colum Grid Layout Showing 1 Product Per Row
    By acreativepage in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 23 Sep 2010, 09:45 PM
  3. Replies: 4
    Last Post: 30 Apr 2009, 06:19 PM
  4. category images - number per row
    By nigelhig in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Apr 2007, 12:50 PM

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