Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Subcategory Icon Columns

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-13-2015, 04:24 PM
 
Wing Fat Wing Fat is offline
 

Advanced Member
  
Join Date: Oct 2012
Posts: 34
 

Default Subcategory Icon Columns

I'm trying to make the number of columns in the sub-categories list four instead of three. I figured out if I add this custom CSS:
Code:
ul.subcategory-view-icons.subcategory-list.grid-list li { width: 25% }
it will reduce the width of the columns. However, it's still three columns max no matter how small I make the width. Is there some way to control the number of columns? (Note that I'm don't want to change the number of product columns, only the subcategory.)
__________________
X-Cart Business 5.2.6
Reply With Quote
  #2  
Old 08-13-2015, 10:36 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Subcategory Icon Columns

Quote:
Originally Posted by Wing Fat
I'm trying to make the number of columns in the sub-categories list four instead of three. I figured out if I add this custom CSS:
Code:
ul.subcategory-view-icons.subcategory-list.grid-list li { width: 25% }
it will reduce the width of the columns. However, it's still three columns max no matter how small I make the width. Is there some way to control the number of columns? (Note that I'm don't want to change the number of product columns, only the subcategory.)
You should also add the following rule to the Custom CSS section to make it four a line
Code:
ul.subcategory-view-icons.subcategory-list.grid-list > li:nth-child(3n) + li { float: none; }
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:16 AM.

   

 
X-Cart forums © 2001-2020