Jump to content

Resize List Images

Recommended Posts

  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 year later...
On 6/12/2024 at 2:05 AM, Anna_U said:

The above code works great, thank you!

But how can I left-align the images? And how do I change the height of the images? Using "height: X% !important" in CSS doesn't seem to do anything. Currently my images are rectangular and cut off, I'd prefer them to be square.

URL: https://www.impetusdesign.studio/firm-to-client

Pass: leopard

change

margin: 0 auto;

to

margin-left: 0;

to increase height, use this

.user-items-list-item-container[data-section-id="6657a40e18939c714b588e11"] .list-item-media-inner {
    padding-bottom: 120% !important;
    overflow: visible !important;
}
.user-items-list-item-container[data-section-id="6657a40e18939c714b588e11"] 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.