Skip to main content

Maintain aspect ratio of product detailed/zoomed view?

9 years 9 months ago - 9 years 9 months ago #261749 by PaulR
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.5

Hi

On a product page, when I click on the product image to get a larger view, the image loses its aspect ratio with smaller windows/devices.

How can I get HikaShop to preserve the aspect ratio?

Thanks in advance!
Last edit: 9 years 9 months ago by PaulR.

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

9 years 9 months ago - 9 years 9 months ago #261776 by Philip
Hello,

These way to treat picture image is strange can you provide an Url link with concerned product please ?
Does this issue touch all your product or just one image ?
I suspect some custom Css to modify classic way to proceed.

Awaiting news from you

Regards
Last edit: 9 years 9 months ago by Philip.

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

9 years 9 months ago #261830 by PaulR
Thanks very much for the reply. I had provided the Url in the thread info and set it to private. I have PM'd you the link to the (only) product on the site, which is live but not ready for ridicule yet. :)

Hope this helps!

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

9 years 9 months ago #261832 by nicolas
Hi,

That's linked to the CSS of the popup system of Joomla.
Add such CSS on your website to prevent that:
#sbox-window, .sbox-content-image, .sbox-content-image img{ height: auto !important; }
The following user(s) said Thank You: csymmonds, PaulR

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

9 years 9 months ago #261953 by PaulR
Thank you very much. For other readers, if you are using something like the Purity III template, you need to put the CSS in a file called custom.css located here...

templates/purity_iii/css/custom.css
The following user(s) said Thank You: csymmonds

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

Time to create page: 0.071 seconds
Powered by Kunena Forum