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 471
  • 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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

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.