Jump to content

Maintaining shop images original ratio

Recommended Posts

Hi there,

My shop is going to sell a number of different sized prints. Some portrait format and some landscape. I need some custom css code to maintain the products original ratio when displayed in the shop. 
 

The problem I’m having is there is no universal ratio that accommodates both formats... The easiest solution would be to code it to ignore wrappers on shop page... hope this makes sense.

 

Can anyone help?

 

 

Link to comment
  • Replies 4
  • Views 509
  • Created
  • Last Reply
5 minutes ago, Inkdave said:

Hi there,

My shop is going to sell a number of different sized prints. Some portrait format and some landscape. I need some custom css code to maintain the products original ratio when displayed in the shop. 
 

The problem I’m having is there is no universal ratio that accommodates both formats... The easiest solution would be to code it to ignore wrappers on shop page... hope this makes sense.

 

Can anyone help?

 

 

What is your site url, we can achieve this using custom code injection

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.