Jump to content

I need 4 product images on my home page to sit beside each other in Mobile View in 2 rows and 2 Columns

Recommended Posts

Site URL: https://www.daronprice.com.au/

Ive been having a small issue with how certain product images look on my home page. 

I have 4 product images that sit beside each other on desktop view but on mobile they stack on top of each other. I want the 4 Images in mobile view to display in 2 rows and 2 columns. 

I was given a code which would help me do this but it doesn't seem to work. 

The code is:

@media only screen and (max-width: 768px) {
    #block-yui_3_17_2_1_1611892954947_10780 + .row .sqs-col-3 {
      width: 50% !important;
      float: left !important;
    }
}

:not(.sqs-edit-mode) #block-yui_3_17_2_1_1611892954947_10780 {
  display: none;
}
 

The code above displays weirdly in mobile view (Screenshots below for reference)

does anyone have any code I can use to fix this issue? Any help would be much appreciated! 

 

Screen Shot 2021-01-29 at 7.46.34 pm.png

Screen Shot 2021-01-29 at 7.46.43 pm.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Try this

@media only screen and (max-width: 768px) {
    #block-yui_3_17_2_1_1611892954947_10780 + .row .sqs-col-3 {
      width: 50% !important;
      float: left !important;
    }
 #block-yui_3_17_2_1_1611892954947_10780 + .row .sqs-col-3:nth-child(2n+1) {clear: 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.