Jump to content

Summary Block - Space between Image and Excerpt

Recommended Posts

Site URL: https://www.identitybuiltbranding.com/ressources

Hi!

I wonder how I can adjust the spacing between the image and the excerpt field on a summary-block with 7.1

This is the URL: https://www.identitybuiltbranding.com/ressources

Below the "Events" I added a summary-block and I'd like to adjust the spacing between image and text. 

Any help is appreciated!
Julius

Screen Shot 2021-04-08 at 12.33.58 PM.png

Edited by juliusgeis
added screenshot
Link to comment

Hey Julius, interesting question and I can confirm this is more difficult that it seems. The problem we run into here is with alignment. In a summary block, that spacing is controlled by the padding of the image. But if we adjust that padding, it will misalign this block with the others on the page. You can see what I mean by adding in this bit of Custom CSS

.summary-thumbnail-container{
  padding-right:40px !important 
}

So what we need to do is remove that padding entirely. Add in margins on the content element and the image element and then resize those elements. This CSS should do it:

@media(min-width:767px) {
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-container{
   padding-right:0px !important 
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-outer-container {
    width: ~'calc(50% - 17px)' !important;
    margin-right: 17px !important;
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-content{
    width: ~'calc(50% - 17px)' !important;
    margin-left: 17px !important;
  }
}

I also wrapped it in media queries so that it only happens on desktop, and I added the block level id in front of each selector so that this code only applies to this one summary block. 

 

 

Hey-o, my name is Will and I help Squarespace designers and developers with technical things.

I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life  - although I'm only an expert in 2 of these. 

Check out my plugin store or sign up for my newsletter

Link to comment

Ahhh, try adding this second media query to adjust things on mobile. 

 

@media(min-width:767px) {
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-container{
   padding-right:0px !important 
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-outer-container {
    width: ~'calc(50% - 17px)' !important;
    margin-right: 17px !important;
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-content{
    width: ~'calc(50% - 17px)' !important;
    margin-left: 17px !important;
  }
}
@media(max-width:767px) {
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-container{
    padding-right:0px !important 
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-thumbnail-outer-container{
    width:100% !important;
    padding-right:0px !important;
  }
  #block-yui_3_17_2_1_1617916128409_10322 .summary-content{
    width: 100% !important;
    margin-top: 34px !important;
  }
}

 

Edited by WillMyers

Hey-o, my name is Will and I help Squarespace designers and developers with technical things.

I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life  - although I'm only an expert in 2 of these. 

Check out my plugin store or sign up for my newsletter

Link to comment
On 4/9/2021 at 10:51 AM, juliusgeis said:

 thank you so much. Let me try that - I will keep you posted 🙂

I see the site has also other problems. If you need to fix, just reply here.

Site URL – https://www.identitybuiltbranding.com/

 

1. (Tablet-Footer) Want to increase column width to preven text break?

identitybuiltbranding.com-01-min.png

2. (Tablet-Resources) Want to increase these text width?

identitybuiltbranding.com-02-min.png

3. (Overlay Menu) Want to show logo on this?

identitybuiltbranding.com-03-min.png

4. (Mobile-ibb) Resize image

identitybuiltbranding.com-04-min.png

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.