Jump to content

Two column Shopify products on squarespace page

Recommended Posts

Site URL: https://guimauve.nl

Hi,

 

I want my products side by side instead of stacks. So two columns. 

I used this code:

@media screen and (max-width:760px) {
div#page-section-60acb063f2c8f00460869887>.row>.col>.row>.col> {
    width: 50% !important;
    float: left !important;  
}
div#page-section-60acb063f2c8f00460869887 .image-block {
    padding: 2px;
}
div#page-section-60acb063f2c8f00460869887 .image-block * {
    margin-bottom: 2px;
}}

However, only the upper row is now side by side. The rest is still stacked. (See screenshot) Can someone explain what's missing in this code?

 

Schermafbeelding 2021-05-25 om 11.56.53.png

Link to comment
  • Replies 2
  • Views 323
  • Created
  • Last Reply

Add this to Design > Custom CSS

@media screen and (max-width:760px) {
div#page-section-60acb063f2c8f00460869887>.row>.col>.row>.col> {
    width: 50% !important;
    float: left !important;  
}
div#page-section-60acb063f2c8f00460869887 .image-block {
    padding: 2px;
}
div#page-section-60acb063f2c8f00460869887 .image-block * {
    margin-bottom: 2px;
}
div#page-section-60acb063f2c8f00460869887 .span-12>.row:nth-child(2)>.span-9 {
    width: 100% !important;
}
div#page-section-60acb063f2c8f00460869887 .span-9 .span-6 .span-3 {
    width: 50% !important;
    float: left !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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.