- Posts: 71
COMMUNITY FORUM
[SOLVED] K2 Grid
- Moustakakis
- Topic Author
- Offline
- Senior Member
Less
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.
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
- 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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 71
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?
I added
max-height: 120px;
overflow: hidden;
but nothing change. Any other suggestion?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 7 months ago #124994
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 71
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.
I have added the proper css rules and everything is ok.
Please Log in or Create an account to join the conversation.