[Skip to main content](#vessel-content)

#   Maintain aspect ratio of product detailed/zoomed view?

##

- **[PaulR](/forum/user/44319-paulr "View PaulR's Profile")**
- [![PaulR's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44319-paulr "View PaulR's Profile") Topic Author
- [ Offline](/forum/user/44319-paulr)

Less More

- Posts: 4
- Thank you received: 1
-
-

9 years 9 months ago -  9 years 9 months ago [\#261749](#261749) by [PaulR](/forum/user/44319-paulr "View PaulR's Profile")  *[Maintain aspect ratio of product detailed/zoomed view?](/forum/26-product-category-display/888732-maintain-aspect-ratio-of-product-detailed-zoomed-view#261749 "-- 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!")* was created by *[PaulR](/forum/user/44319-paulr "View PaulR's Profile")*

-- 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](/forum/user/44319-paulr "View PaulR's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg3MzItbWFpbnRhaW4tYXNwZWN0LXJhdGlvLW9mLXByb2R1Y3QtZGV0YWlsZWQtem9vbWVkLXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 9 months ago -  9 years 9 months ago [\#261776](#261776) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Maintain aspect ratio of product detailed/zoomed view?](/forum/26-product-category-display/888732-maintain-aspect-ratio-of-product-detailed-zoomed-view#261776 "-- 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!")*

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](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg3MzItbWFpbnRhaW4tYXNwZWN0LXJhdGlvLW9mLXByb2R1Y3QtZGV0YWlsZWQtem9vbWVkLXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PaulR](/forum/user/44319-paulr "View PaulR's Profile")**
- [![PaulR's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44319-paulr "View PaulR's Profile") Topic Author
- [ Offline](/forum/user/44319-paulr)

Less More

- Posts: 4
- Thank you received: 1
-
-

9 years 9 months ago [\#261830](#261830) by [PaulR](/forum/user/44319-paulr "View PaulR's Profile")  Replied by *[PaulR](/forum/user/44319-paulr "View PaulR's Profile")* on topic *[Maintain aspect ratio of product detailed/zoomed view?](/forum/26-product-category-display/888732-maintain-aspect-ratio-of-product-detailed-zoomed-view#261830 "-- 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!")*

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. ![:)](/media/kunena/emoticons/3.png ":)")

Hope this helps!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg3MzItbWFpbnRhaW4tYXNwZWN0LXJhdGlvLW9mLXByb2R1Y3QtZGV0YWlsZWQtem9vbWVkLXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 9 months ago [\#261832](#261832) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Maintain aspect ratio of product detailed/zoomed view?](/forum/26-product-category-display/888732-maintain-aspect-ratio-of-product-detailed-zoomed-view#261832 "-- 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!")*

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](/forum/user/9149-csymmonds "View csymmonds's Profile"), [PaulR](/forum/user/44319-paulr "View PaulR's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg3MzItbWFpbnRhaW4tYXNwZWN0LXJhdGlvLW9mLXByb2R1Y3QtZGV0YWlsZWQtem9vbWVkLXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PaulR](/forum/user/44319-paulr "View PaulR's Profile")**
- [![PaulR's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44319-paulr "View PaulR's Profile") Topic Author
- [ Offline](/forum/user/44319-paulr)

Less More

- Posts: 4
- Thank you received: 1
-
-

9 years 9 months ago [\#261953](#261953) by [PaulR](/forum/user/44319-paulr "View PaulR's Profile")  Replied by *[PaulR](/forum/user/44319-paulr "View PaulR's Profile")* on topic *[Maintain aspect ratio of product detailed/zoomed view?](/forum/26-product-category-display/888732-maintain-aspect-ratio-of-product-detailed-zoomed-view#261953 "-- 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!")*

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](/forum/user/9149-csymmonds "View csymmonds's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODg3MzItbWFpbnRhaW4tYXNwZWN0LXJhdGlvLW9mLXByb2R1Y3QtZGV0YWlsZWQtem9vbWVkLXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
