Jump to content

Vertically centre an image to it's card in a carousel using custom css

Go to solution Solved by Ziggy,

Recommended Posts

image.thumb.png.2f168fef5b5cb141357d134c00fd05f1.pngHow do I vertically centre these logos to the circle card behind them using code? The logos are of all different sizes and ratios, I want to tidy them up to vertically centre them.

This is using a carousel block

Link to comment

Can you share your website URL?

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) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Try this additional CSS:

section[data-section-id="6639e7ccd7282c3cdac46bc4"] {
  .user-items-list-carousel__slide {
    justify-content: center;
  }
  .list-item-content {
    display: none !important;
  }
  .user-items-list-carousel__media-container {
    margin-bottom:0% !important;
  }
}

 

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) 

 Did I help? Buy me a coffee?

Link to comment
12 hours ago, Ziggy said:

Try this additional CSS:

section[data-section-id="6639e7ccd7282c3cdac46bc4"] {
  .user-items-list-carousel__slide {
    justify-content: center;
  }
  .list-item-content {
    display: none !important;
  }
  .user-items-list-carousel__media-container {
    margin-bottom:0% !important;
  }
}

 

Thank you so much!! This worked 🙂

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.