Keyword

Align items

  • Tom Calleeuw
  • Tom Calleeuw's Avatar Topic Author
  • Offline
  • New Member
More
9 years 3 months ago #147148 by Tom Calleeuw
Align items was created by Tom Calleeuw
Hello,


since Googling and experimenting through the Chrome Console didn't help me find the solution I was wondering if somebody here could help me.

For a website with a K2 listing I've got a category view with items divided over 3 columns. Every item has a title and an image. Because some titles are divided over multiple lines, the images aren't aligned with each other.

I'd like to have the bottom side of the images aligned with the ones next to it. I've made these two images to show what I want:
* current situation: i.imgur.com/ORxumKw.jpg
* the situation I want to achieve: i.imgur.com/Jm4bcqZ.jpg

Thanks in advance!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #147190 by Krikor Boghossian
Replied by Krikor Boghossian on topic Align items
Hello,

This is a template issue, you should address this issue to the template's developer.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tom Calleeuw
  • Tom Calleeuw's Avatar Topic Author
  • Offline
  • New Member
More
9 years 3 months ago #147206 by Tom Calleeuw
Replied by Tom Calleeuw on topic Align items
Thanks for your answer. This is the standard K2 template that I'm using. I thought it was developed by Joomlaworks. Could you tell me who made it for K2?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #147266 by Krikor Boghossian
Replied by Krikor Boghossian on topic Align items
Oh sorry about that.
1) Override the k2.css file
Grab the file from /components/com_k2/css and move it to your template's css folder.
2) locate .itemContainer { float: left; }
remove float: left and add display: inline-block; vertical-align: bottom; margin: 0 -2px;

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tom Calleeuw
  • Tom Calleeuw's Avatar Topic Author
  • Offline
  • New Member
More
9 years 3 months ago #147281 by Tom Calleeuw
Replied by Tom Calleeuw on topic Align items
Awesome, that worked like a charm!! Thank you very much!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #147314 by Krikor Boghossian
Replied by Krikor Boghossian on topic Align items
You 're welcome Tom :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum