Keyword

[SOLVED] K2 Grid

  • Moustakakis
  • Moustakakis's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124991 by Moustakakis
[SOLVED] K2 Grid was created by Moustakakis
I have a k2 category leading 12 items per page in 4 columns.

The problem I have is that the category image are not all the same.

Is there any way to have the same width and height in all boxes like a grid?

Best Regards.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124992 by Yiota
Replied by Yiota on topic Re: K2 Grid
You can add a max-height in the catItemImageBlock class in your css with overflow:hidden.

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

  • Moustakakis
  • Moustakakis's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124993 by Moustakakis
Replied by Moustakakis on topic Re: K2 Grid
Hi,

I added

max-height: 120px;
overflow: hidden;

but nothing change. Any other suggestion?

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

More
10 years 7 months ago #124994 by Lefteris
Replied by Lefteris on topic Re: K2 Grid
@Christos

You cannot have images of same height unless all the images you upload have the same size. The only way to fix this is using CSS. Create an element of the desired width and height and place the image as background image. Alternatively you can apply CSS rules to the images width and height but this will stretch your images.

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

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

  • Moustakakis
  • Moustakakis's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #124995 by Moustakakis
Replied by Moustakakis on topic Re: K2 Grid
ok!

I have added the proper css rules and everything is ok.

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


Powered by Kunena Forum