Thread: columns per row

Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    96
    Plugin Contributions
    0

    Default columns per row

    A problem that never gets really solved.. at one point I had in some places 2 columns per row. Now I dont have even if it is set in the admin. I would like to have 3 columns per row visible. And no, it is not my width that is wrong.
    consernng:
    New listing
    categories
    also purchased

    I cant figure out what/where is wrong!

    www.garudakauppa.fi

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: columns per row

    On the contrary, this problem occurs regularly and is frequently resolved.

    The first problem is that you have removed the float:left from the .back styling in your stylesheet. That's why all the products are displayed in a single column instead of floating up alongside each other.

    If you put that back, you will be left with sometimes two, sometimes one, product per row. The reason for this is that you have added some horizontal padding to each of the boxes making them too wide to fit three to a row. Take that away and they'll be sitting neatly next to each other again.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2008
    Posts
    96
    Plugin Contributions
    0

    Default Re: columns per row

    My have had this problem almost solved many times but never really as I would like to have. My stylesheet is a bit of a mess. I dont remember what I started from, and is a bit of a difficultie to clean.
    I still seem to have some padding or something. Is it with the line under? I cant find it though.
    here there is only one column
    http://garudakauppa.fi/nettikauppa/i...index&cPath=18
    when here there is two
    http://garudakauppa.fi/nettikauppa/i...=index&cPath=2

    and nowhere three.

    Thanks for the help

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: columns per row

    At around about line 630 of your stylesheet you have styles for .categoryListBoxContents which include both margin and padding, both of which can contribute to your problem.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Sep 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: columns per row

    I'm having the same problem with a new template I've installed.

    You can see it on the main page here: http://www.turtlecontacts.com

    Each 'Featured Product' takes up one row even though I have set "Index Listing -> Featured Products Columns per Row" to 3.

    Can anyone advise me on how to fix this?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: columns per row

    @thuxen

    Your template appears to have been designed to have one product per row and the inline CSS that sets the width of each product block is 100%, over-riding Zen Cart's internal calculation based on the columns per row setting that you changed.

    As that is a commercial template and you will need to contact the support team at Template Monster to find out what they have done and whether it can be easily turned off.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: columns per row

    Quote Originally Posted by procella View Post
    My have had this problem almost solved many times but never really as I would like to have. My stylesheet is a bit of a mess. I dont remember what I started from, and is a bit of a difficultie to clean.
    I still seem to have some padding or something. Is it with the line under? I cant find it though.
    here there is only one column
    http://garudakauppa.fi/nettikauppa/i...index&cPath=18
    when here there is two
    http://garudakauppa.fi/nettikauppa/i...=index&cPath=2

    and nowhere three.

    Thanks for the help
    This is due to the padding in for each item. Set padding to 0 as follows:

    Code:
    .categoryListBoxContents {
    padding: 0;

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: columns per row

    InkWizard - What you want is not a fix for something broken, but a new feature.

    Both of the pages you describe are category/subcategory listings, yet you want them to use different templates. That can be done; it will require some additional coding to distinguish the page involved and rework the column/row layout accordingly. It would be nice to use the per-page template override system, but both of the pages are named "index" so they can't be distingushed that way. You could make a copy of the alternate file for each category, but that would get very cumbersome to maintain.

    The best way will probably be to insert the distinguishing and alternate layout code in
    /includes/modules/your_template/category_row.php.

 

 

Similar Threads

  1. Columns per Row
    By SexyCharlie in forum General Questions
    Replies: 14
    Last Post: 11 Sep 2012, 07:15 PM
  2. Columns per Row
    By cchan in forum Setting Up Categories, Products, Attributes
    Replies: 46
    Last Post: 28 Oct 2010, 06:07 PM
  3. centerbox columns per row (ie issues)
    By jbezooyen in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jan 2008, 02:40 AM
  4. Products listing - Columns per row
    By chiselbit in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 28 Dec 2006, 01:38 PM
  5. Default columns per row
    By patski in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Nov 2006, 09:57 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