[SOLVED] 3 Column K2 Category

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Feb 23, 2016 3:23 am
Reply with quote
Report this post
I have a page showing 7 items in a k2 category. I would like the first row (leading columns in the layout grid) to be centered instead of floating left.
How could I go about doing this? I have tried using a Category item layout template(category_item.php), and with CSS but can not seem to figure it out.
can anyone help me with this?
here is a link to the page
http://pearcelawgroup.com/sandbox/team.html
User avatar
Fresh Boarder

GK User
Tue Feb 23, 2016 2:12 pm
Reply with quote
Report this post
Hello,

You can just set 3 columns for the leading items in the category layout settings and then the items won't be floated to left :)
User avatar
Moderator

GK User
Tue Feb 23, 2016 3:24 pm
Reply with quote
Report this post
I should have mentioned that I don't want the images to be 33% of the width.I want them smaller.
It doesn't appear to be possible
User avatar
Fresh Boarder

GK User
Tue Feb 23, 2016 5:58 pm
Reply with quote
Report this post
So in this case, please try to use the following CSS code:

Code: Select all
#itemListLeading {
   text-align: center;
}
#itemListLeading .itemContainer {
   display: inline-block;
   float: none;
}
User avatar
Moderator

GK User
Tue Feb 23, 2016 7:55 pm
Reply with quote
Report this post
Perfect! thanks :D

when I tried I missed the display: inline-block;
User avatar
Fresh Boarder


cron