Product image blurry

  • Posts: 25
  • Thank you received: 4
  • Hikashop Essential
1 month 2 weeks ago #359677

Hi Philip,

Thank you for your answer. Your solution does sort out the problem of the arrows and the size of the image when viewed on a mobile phone, but it now sends me back to the initial problem. The size of the image on the product page when viewed on a computer is now bigger than the size I set up in the configuration page (500px) and it also goes over the thumbnails and description text.

Is there a css I could enter that would only affect how the image is being seen on the product page when viewed on a mobile phone, without affecting the setting previously chosen for how it appears on a computer screen?

Thank you!

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

  • Posts: 4519
  • Thank you received: 612
  • MODERATOR
1 month 2 weeks ago #359687

Hello,

You can condition the context of use of your command only on very specific screen sizes thanks to @media
See this documentation

Example :

@media only screen and (max-width: 600px) {
  img#hikashop_main_image {
    max-width: unset;
  }
}
Regards

Last edit: 1 month 2 weeks ago by Philip.
The following user(s) said Thank You: Noe

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

  • Posts: 25
  • Thank you received: 4
  • Hikashop Essential
1 month 2 weeks ago #359769

Hi,

Thank you Philip! I'm very new to CSS but I'm trying to learn.

Here is what I've entered that's worked for me:

@media only screen and (max-width: 600px) {
img#hikashop_main_image {
max-width: 100%;
display: block;
}
}

The following user(s) said Thank You: nicolas

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

Time to create page: 0.060 seconds
Powered by Kunena Forum