- Posts: 28
COMMUNITY FORUM
Putting K2 Content Module in two columns: question
- Robert Peterson
- Topic Author
- Offline
- Junior Member
Less
More
10 years 10 months ago #120679
by Robert Peterson
Putting K2 Content Module in two columns: question was created by Robert Peterson
Hello!
I've split the K2 content module into two columns using the following CSS:
Any idea how to fix this? Thanks!
I've split the K2 content module into two columns using the following CSS:
Attachment not found
Any idea how to fix this? Thanks!
Please Log in or Create an account to join the conversation.
- Vitaly
- Offline
- Junior Member
Less
More
- Posts: 24
10 years 10 months ago - 10 years 10 months ago #120680
by Vitaly
Replied by Vitaly on topic Re: Putting K2 Content Module in two columns: question
Logic is simple. That module only counts width of your columns that depends on amount of that columns. Nothing changes height, so it's based on your item's description and their amount. If you want to have few columns with similar height you need to declare height via css.
Your columns is
Your columns is
Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #120681
by Yiota
Replied by Yiota on topic Re: Putting K2 Content Module in two columns: question
You can also try to add a clear container after each odd item in order for your items to begin from the same top position.
You need to create an override of the k2 content module, if not already, and make a check like
Put this clear list right before the <?php endforeach; ?> occurs.
PS. Read here on how overrides work
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
You need to create an override of the k2 content module, if not already, and make a check like
<?php if (count($items)%2==0) echo '<li class="clearList"></li>'; ?>
Put this clear list right before the <?php endforeach; ?> occurs.
PS. Read here on how overrides work
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Please Log in or Create an account to join the conversation.