Keyword

[SOLVED] Category view column widths

More
10 years 7 months ago #125650 by James
Hi,
I have set a menu item to pick up a specific category.
in this category there are 6 items.

I want the page to show all 6 items in 1 row - so 6 columns.

I have set everything correctly and those items show on the page, however only 5 are in the top row and one drops to the second row.

Looking at the html, the column width is 16.7%.
In firebug, if i clickdiv class=itemContainer it shows the following:

element.style {
width: 16.7%;

If i change this to 16.5% then it all shows correctly in one line.

I can't find where the column widths are set to adjust this - can anyone help me resolve?

Thanks

James

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 7 months ago #125651 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Category view column widths
Column widths are calculated automagically :)

Based on no of items you set, it gets divided with 100.

Maybe you can try setting the main container wider or remove any padding and see if it fits.

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #125652 by James
Replied by James on topic Re: Category view column widths
I did try to remove any padding but couldn't resolve:

zappis.cc/the-club/sportives/zappis-gran-fondo

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 7 months ago #125653 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Category view column widths
What i would do is to set the cat items to display 7 items, one extra. This will make the existing 6 items to fit in a row. A quick fix :)

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #125654 by James
Replied by James on topic Re: Category view column widths
Yes, i did do this but it looks a bit rubbish with such a large gap to the right.
I'd rather get the proper solution :P

Thank you very much for replying though...

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 7 months ago #125655 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Category view column widths
Well, if you really want that 16.5% width, and you're sure there will only be 6 items and you have set a subtemplate for that category (template override)

You can try this -

In category.php, somewhere along line 151
					
K2 Rocks \m/

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #125656 by James
Replied by James on topic Re: Category view column widths
Ha!

I tricked it.

I've given it 6.1 columns!

Thanks to your information about how it divides cloumns by 100 :)

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 7 months ago #125657 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Category view column widths
Hooray!, glad it worked :D

K2 Rocks \m/

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum