Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    31
    Plugin Contributions
    0

    Default Display Sub categorys as a grid, not list.

    Hi all,

    I would like to know if I can get my sub categorys to be displayed in a grid, much like the grid mod does for products.

    Here is a link to an example page: http://www.aspirehandbags.com/index.php/Essentials-c-8

    There are only a couple of sub categories here at the moment, but you should be able to see what I am on about.

    Many thanks for any assistance

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

    Default Re: Display Sub categorys as a grid, not list.

    Admin > Configuration > Maximum Values > Categories To List Per Row.

  3. #3
    Join Date
    Oct 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Display Sub categorys as a grid, not list.

    Hi,

    thanks for your reply. I have tried that but it doesn't seem to help.

    the only changed that occured, is that if i set that value to 1, the catagories appear in the centre of the screen.

    Any other number, and it still shows just one per row. (it is currently set to 4)

    I tried making the sub category image sizes smaller, in case they simply wouldn't fit. This didn't help either.

    Any thoughts?

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

    Default Re: Display Sub categorys as a grid, not list.

    That's strange.
    Zen Cart automatically calculates how wide each of those category listings should be; in your case, since there are only two to display, it gives each 50%.

    Margins or padding will add to that, and can make the correct number not fit, and browser rounding errors can make the total come to infinitesimally more than 100% which will bump the last one in line down, but I tested your site and neither of those is the problem.
    ---

    Your stylesheet has

    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {

    float: center;
    }

    which is a problem. There is no such thing as "float: center;", and the original float: left; is what makes them line up in rows.
    If you want other elements in that list to be centered, separate the selectors and restyle like this
    Code:
    .categoryListBoxContents {
        float: left;
        }
    
    #logo, .centerBoxContents, .specialsListBoxContents,  .centerBoxContentsAlsoPurch, .attribImg {
        text-align: center;
        }
    Nevermind, Kobra answered while I was looking at your site...
    Last edited by gjh42; 4 Feb 2008 at 10:18 PM.

  5. #5
    Join Date
    Oct 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Display Sub categorys as a grid, not list.

    Thank you both,

    I'll try that now, back in a mo to confirm it has worked...

  6. #6
    Join Date
    Oct 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Display Sub categorys as a grid, not list.

    That's worked a treat, thank you both very much.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Display Sub categorys as a grid, not list.

    Try changing this to left & or seperate out logo into it's own & maybe use text-align: center over float
    Code:
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    	float: center;
    }
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. How to edit featured product page 1 colum list display into a grid??
    By elite supplement in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Sep 2012, 11:41 PM
  2. Sub Categorys
    By willy0127 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 14 Feb 2011, 09:25 PM
  3. Product Display List vs. Grid Alignment...
    By lazschu in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Oct 2008, 01:39 AM
  4. How do I change product display from List to Grid?
    By cama in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Aug 2008, 08:26 PM
  5. Display grid of available sub-categories
    By redpaint in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Jul 2007, 07:03 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