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
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.