Jump to content

Changing the object fit of a container from "cover" to "contain"

Recommended Posts

Hey guys, need help with a website I am working on. I need to change the object fit of every photo in this container and also change the padding on each side. What code do I need to achieve this? I tried doing it with my browser inspect element section and it worked but I need it on my actual website. 

 

Here is how it looks right now

image.thumb.png.18d85226a3c84e586d93c68efdb90288.png

 

Here is after changing it using my browser to get the desired result

image.thumb.png.51b67f2d73abd66561d70e81b2479ba2.png

 

 

Thanks 

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Can you share your website URL and the page this in on?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.