Jump to content

Keeping "Simple List" columns intact when browser width changes

Recommended Posts

I'm working on a page that needs a table of contents with icons and buttons. I like the setup of the Simple List section with cards in 5 columns, but when I make my browser smaller than full screen on a laptop, the cards stay the same size and create multiple rows. I'd like them to scale according to the width of the browser (respond to it) to stay in one line of 5 columns until it gets to mobile width, at which point one column is fine. I've spent a bunch of time clicking around to find a solution but haven't been successful yet. Is this possible?

See the section called "Contents". Icons are sketches/stand-ins.

Thanks in advance 🙂

Link to comment

Can you share your website URL please?

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
  • 3 weeks later...

Try this as a starting point, add to Custom CSS:

@media screen and (min-width: 768px) {
  .user-items-list-simple[data-num-columns="5"] {
    -ms-grid-columns: (1fr)[5] !important;
    grid-template-columns: repeat(5,1fr) !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
  • 4 weeks later...
11 hours ago, enew said:

Thank you, Ziggy! Unfortunately, it didn't work when I added it into the Squarespace custom CSS area. Can you advise further?

Try this CSS code

@media screen and (min-width:768px) {
.user-items-list-item-container[data-section-id="64fb8eda9d883626580ae1de"] {
    grid-template-columns: repeat(5,1fr) !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

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.