Jump to content

how to change size of images on my events page

Go to solution Solved by tuanphan,

Recommended Posts

Greetings.
I hope someone here can help me. I tried ChatGPT first without any luck.

We have an events page on our site with an image for each event (it is the logo of the organization who will be visiting us on a given date). The image is stretched and I can't seem to resize it. I'd like to make it about a quarter the size it is in the screenshot.

I'd be very grateful for any help I can get.

I tried adding the following custom CSS code to no avail:
 

.eventlist-column-thumbnail {
  width: 300px; /* Change the value to the desired width */
  height: 200px; /* Change the value to the desired height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.eventlist-column-thumbnail img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
 

 

Here's an image of the page:

image.thumb.jpeg.4ca144f53c2e232fcf0ef45258c2b970.jpeg

 

 

 

Link to comment
  • Replies 6
  • Views 2.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • Solution

Add to Design > Custom CSS

.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
.tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail {
    padding-bottom: 15% !important;
    width: 15% !important;
}
.eventlist-column-info {
    width: 85% !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
  • 8 months later...
12 hours ago, sarahgcb said:

is there a way to do this just for desktop version without changing the setting for phone view?

Change the code to this

@media screen and (min-width:992px) {
.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
.tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail {
    padding-bottom: 15% !important;
    width: 15% !important;
}
.eventlist-column-info {
    width: 85% !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.