Jump to content

Align Summary Text to Middle of Image (List

Go to solution Solved by Ziggy,

Recommended Posts

I have a summary block on my homepage, https://www.simpledwelling.net, using the List design. I want to align the text to the centre of the image vertically and add some additional padding between the image and text. See image for a mock-up.

Ideally, I'd like to also increase font sizes for each piece of text for this particular summary block.

Can anyone help with some code?

Thanks!

Screenshot 2024-05-21 at 3.02.59 PM.png

Screenshot 2024-05-21 at 3.02.59 PM.jpg

Link to comment
  • Solution

Try this in Custom CSS:

@media only screen and (min-width:768px) {
  .sqs-block-summary-v2 .summary-block-setting-design-list .summary-item {
    display: flex;
    align-items: center;
  }
  .sqs-gallery-design-list .sqs-gallery-image-container {
    padding-right: 42px;
  }
}

 

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) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
2 hours ago, Ziggy said:

Try this in Custom CSS:

@media only screen and (min-width:768px) {
  .sqs-block-summary-v2 .summary-block-setting-design-list .summary-item {
    display: flex;
    align-items: center;
  }
  .sqs-gallery-design-list .sqs-gallery-image-container {
    padding-right: 42px;
  }
}

 

That worked, thank you! How can I increase the font size without affecting all the summary blocks on my site? This is the only one as a 'List' though.

Link to comment
4 minutes ago, anthonyrichardson said:

That worked, thank you!

Could you mark my post as the solution, and give it a like?

4 minutes ago, anthonyrichardson said:

How can I increase the font size without affecting all the summary blocks on my site? This is the only one as a 'List' though.

Use this Custom CSS and adjust the font size:

@media only screen and (min-width:767px) {
  section[data-section-id="6640587325d284476be03ca8"]
  // heading
  .summary-title {
    font-size:32px;
  }
  // body
  .summary-excerpt  {
    font-size:24px;
  }
}
}

 

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) 
 🖼️ Pinch-to-Zoom Gallery Lightbox 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.