Keyword

image height in category view

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 3 months ago #177823 by guida
image height in category view was created by guida
Hello, my k2 to blog is getting a mess because of different images heights in category view.

k2 makes it easy to change the horizontal measures and what about the height?
It is a basic feature and i believe it can be changed in the css?

Could you tell me how?

Thank you!

Ana

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

More
3 years 3 months ago #177831 by JoomlaWorks
Replied by JoomlaWorks on topic image height in category view
Either override K2's CSS (and templates) using this guide: getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates

...Or simply add CSS into your template's main CSS file to enforce a height value.

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

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

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 3 months ago #177840 by guida
Replied by guida on topic image height in category view
That's the point, i have tried. Since i am not a coder and my case skills are not advanced i couldn't do it and decided to ask for support before doing some damage.

Can you tell the file, the line and exact code i should use?

Thank you
Ana

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

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 3 months ago #177841 by guida
Replied by guida on topic image height in category view
well, i used this code:

span.catItemImage img {
height: 300px !important;
object-fit: cover;
}

it works fine to the categories. except for the homepage. i have tried 2 or 3 columns, i have clean cache, in joomla and in browser, but this solution doesnt apply to the homepage.

one more tip and this is solved!

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

More
3 years 3 months ago #177846 by JoomlaWorks
Replied by JoomlaWorks on topic image height in category view
I'll need an actual URL to tell you what to adjust.

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

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

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 3 months ago #177857 by guida
Replied by guida on topic image height in category view
solved. the image height only works on lists of itens from categories and not on most recent itens from users and categories

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


Powered by Kunena Forum