Jump to content

Need code to display both vertical and horizontal images

Recommended Posts

Hi everyone, 

I need help with my shop. Squarespace only lets me pick vertical or horizontal layouts for images and it's messing up store, and it's basically cutting off my wider images.  I need for the thumbnails and store displays to automatically adjust to the width of each image.  I've tried resizing the wider photos and taking vertical photos of them but am still running into the same issue. Does anyone know how to fix this with CSS in 7.1? 

Thank you!

Natalie 

 

Screenshot 2022-12-24 100158.png

Screenshot 2022-12-24 100459.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 12/24/2022 at 10:06 PM, nataliem407 said:

Hi everyone, 

I need help with my shop. Squarespace only lets me pick vertical or horizontal layouts for images and it's messing up store, and it's basically cutting off my wider images.  I need for the thumbnails and store displays to automatically adjust to the width of each image.  I've tried resizing the wider photos and taking vertical photos of them but am still running into the same issue. Does anyone know how to fix this with CSS in 7.1? 

Thank you!

Natalie 

 

Screenshot 2022-12-24 100158.png

Screenshot 2022-12-24 100459.png

Can you share your site with the protected password so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Try adding to Design > Custom CSS

body[class*="type-products"] article section img {
	object-fit: contain !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.