Keyword

Image is stretched

  • Travelhamster
  • Travelhamster's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #101998 by Travelhamster
Image is stretched was created by Travelhamster
Hi All,

I'm lost at the moment! I can't find which CSS controls the width of the image that is on the following link:

grahamsgarden.com/joomlatest/index.php/what-s-growing-in-the-garden/flowers/z/itemlist/category/47-zinnia

It is stretched out as it holds the height at 100px, but just adds more width.

I hope someone can poke me in the right direction.

Thanks

Ben

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

More
12 years 1 month ago #101999 by Lefteris
Replied by Lefteris on topic Re: Image is stretched
Hi. Check your K2 layout files for hardcoded height/width values.

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

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

  • Travelhamster
  • Travelhamster's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #102000 by Travelhamster
Replied by Travelhamster on topic Re: Image is stretched
Thanks for your response, but sadly I still can't locate it. You said in the layout files, but when I do a search for the hard-coded value (in this case it's 100px) nothing comes up.

I hope you will be able to tell me where I'm going wrong,

Thanks
Ben

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

More
12 years 1 month ago #102001 by Lefteris
Replied by Lefteris on topic Re: Image is stretched
Your site isn't loading any more. Try to re-upload the image.

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

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

  • Travelhamster
  • Travelhamster's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #102002 by Travelhamster
Replied by Travelhamster on topic Re: Image is stretched
Hi Lefteris,

Thank you again for your response. I moved the site from where it was originally, which broke the link. However here it is again:

grahamsgarden.com/index.php/grahams-daily-diary/itemlist/category/47-zinnia

It seems to be in the itemlist. I have tried to change some values in the CSS, but they all don't have an influence sadly.

Cheers for any help

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

More
12 years 1 month ago #102003 by Lefteris
Replied by Lefteris on topic Re: Image is stretched
The height should be to auto... The value of 100px height seems to be hardcoded in your template files.... If you use the default template you will see that it works as it should grahamsgarden.com/index.php/grahams-daily-diary/itemlist/category/47-zinnia?template=atomic

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

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

  • Travelhamster
  • Travelhamster's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #102004 by Travelhamster
Replied by Travelhamster on topic Re: Image is stretched
Hi Lefteris,

Thank you again for your response. It was indeed hardcoded into the
\components\com_k2\templates\default\category_item.php file

I changed the height back to auto
Log in  or Create an account to join the conversation.

More
12 years 1 month ago #102005 by Lefteris
Replied by Lefteris on topic Re: Image is stretched
Try to search more overrides with this. K2 does support Joomla! caching but it should have expired already ( unless you have set it to one month.... ).

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

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