Keyword

image height in category view

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 5 days 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #177831 by Fotis
Replied by Fotis 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.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 3 days 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
2 weeks 3 days 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #177846 by Fotis
Replied by Fotis on topic image height in category view
I'll need an actual URL to tell you what to adjust.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • guida
  • guida's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 14 hours 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