Jump to content

Carousel Card Ratio Change to 2:3

Go to solution Solved by Ziggy,

Recommended Posts

Site URL: https://www.unasali.com/about

For my testimonial section I use carousel design with card style. I positioned them with fourth position option - top to bottom. But  cards appear somewhat square-ish which I don't like. I would like them to be fixed 2:3 ratio without having to change text size or padding - both on desktop and mobile so they can take up more space.

Can someone help with a code, or if other solution available? 

www.unasali.com

 

Link to comment

Try this in Custom CSS:

.user-items-list-carousel__slides {
    min-height: 30vw;
}

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (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
5 minutes ago, Una01 said:

@Ziggy Thanks. It works for desktop view, but the mobile view seems unchanged. 

Try this instead:

.user-items-list-carousel__slides {
    min-height: 42vh;
}

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (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

@Ziggy Thanks. 

This (updated to 60vh) seems to be okay working on both mobile and desktop:

 

.user-items-list-carousel__slides {
    min-height: 60vh;
}

 

I've attached the mobile view, please check the image, and let me know if there is also a way to reduce a  bit the width of the card as well. The built-in options have only width of the text and card padding top and bottom, plus there is also space between the cards option which can be adjusted, but for mobile view, it's useless. 

 

@Ziggy

 

IMG_3551.jpg

Edited by Una01
Link to comment
  • Solution

You can try this:

@media only screen and (max-width:767px) {
  .user-items-list-carousel[data-layout-width="full"] .user-items-list-carousel__gutter, .user-items-list-carousel[data-layout-width="full"] .arrows-bottom-wrapper {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

Again adjust the value to a design you like.

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

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (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
Just now, Una01 said:

Worked perfectly. Thanks @Ziggy

Happy to help!

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (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.