Jump to content

Images in Summary Block

Recommended Posts

I'm trying to add two summary blocks to my homepage. These blocks will be next to each other and feature two posts each. One summary block will be pulled from a blog and another from our events page. When I created this, the images were not the same size (the blog images are shorter than the events images). How can I make all images the same size?

Screenshot 2024-02-12 at 12.09.49 PM.png

Link to comment
  • Replies 9
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Try this code to Website > Website Tools (under Not Linked) > Custom CSS

div#block-b310c8d0a6fda8af9b05 {
.summary-thumbnail.img-wrapper {
    padding-bottom: 56.25% !important;
}

.summary-thumbnail.img-wrapper img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}}

 

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
On 2/14/2024 at 10:18 PM, kh123123 said:

Thanks! That worked, but it gave it too much padding at the bottom so that the "More Events" button dropped way down. I would need a way to get rid of that white space that is under the event images.Screenshot2024-02-14at10_15_55AM.png.15a43c9ab825e03e11d33bfea615812a.png

Edit Summary > Click Design Tab > Choose Grid instead of Wall

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

Use this new code

div#block-b310c8d0a6fda8af9b05 {
.summary-item {
    margin-bottom: 0px !important;
}
.summary-thumbnail-container {
    padding-bottom: 56.25% !important;
}
.summary-thumbnail-container img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !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
On 2/17/2024 at 5:39 AM, tuanphan said:

Use this new code

div#block-b310c8d0a6fda8af9b05 {
.summary-item {
    margin-bottom: 0px !important;
}
.summary-thumbnail-container {
    padding-bottom: 56.25% !important;
}
.summary-thumbnail-container img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}}

 

That now creates too much padding below news images so that the "More News" button dropped way down.

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.