ccxwood Posted August 15, 2023 Share Posted August 15, 2023 At the moment desktop view has one horizontal row with (4) individual products. Mobile view has one column with each product stacked. I would like to target the widths between 767px - 1045px and have my (4) products distributed evenly between two columns. Site: https://sartori7.squarespace.com/lapel-accessories PW: 1237 Link to comment
Ziggy Posted August 15, 2023 Share Posted August 15, 2023 This is a great tutorial: https://insidethesquare.co/squarespace-tutorials/two-column-mobile I've adapted the code for your usage: @media only screen and (min-width:768px) and (max-width:1045px) { .products .list-grid { display: flex; flex-wrap: wrap; justify-content: space-between; } .products .grid-item { width: 48%; } } 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) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
ccxwood Posted August 15, 2023 Author Share Posted August 15, 2023 @Ziggy The grid was not distributed between 2 columns but the size was reduced to 48%. Link to comment
Lesum Posted August 15, 2023 Share Posted August 15, 2023 @ccxwood Here's your solution. Add the code under Website > Website Tools > Custom CSS. Also make sure you add the code after your previous code and delete the code you added from the previous comment. @media screen and (min-width: 768px) and (max-width: 1045px) { section[data-section-id="64bef7269fbf9701d8fd6edc"] { min-height: auto !important; height: auto !important; } .products.collection-content-wrapper .list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) !important; } } tuanphan 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment