Keyword

How to make images responsive in K2 item for mobile

  • Donald Harvey
  • Donald Harvey's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #158500 by Donald Harvey
Hi,

I'm trying to make the images i have in a item responsive for mobile viewing but can't work out how to do this does anyone know if it can be done or not??

Thanks
Donald

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #158508 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make images responsive in K2 item for mobile
Hello Donald,

Are you talking about max width or srcset?

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

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

  • Donald Harvey
  • Donald Harvey's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #158511 by Donald Harvey
Replied by Donald Harvey on topic How to make images responsive in K2 item for mobile
Hi Krikor,

Yeah the max width but only on mobile view, but on desktop view i want it to remain the normal size for desktop.

I'm not sure what srcset means

Donald

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #158516 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make images responsive in K2 item for mobile
You can use a value like
img {
  max-width: 100%;
}

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

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

  • Donald Harvey
  • Donald Harvey's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #158518 by Donald Harvey
Replied by Donald Harvey on topic How to make images responsive in K2 item for mobile
Hi Krikor,

Yeah would i put that code, would i put it into the item.php file.

Donald

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #158522 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make images responsive in K2 item for mobile
It's CSS code, you need to put it in your template's stylesheet.

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

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

  • Donald Harvey
  • Donald Harvey's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #158523 by Donald Harvey
Replied by Donald Harvey on topic How to make images responsive in K2 item for mobile
Thankyou Krikor

Solved!!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #158527 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to make images responsive in K2 item for mobile
You 're welcome Donald.

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

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


Powered by Kunena Forum