Jump to content

Help for side by side image in Mobile

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://apetrippy.com/

I would like my image to be side by side may be 2 or 3 image per row on mobile. https://apetrippy.com/

However, the mobile display as one image vertically stacked. I have tried my best, but i have no idea how to change it.

Dont know how to search the 'block-yui' neither, may any one post the CSS code to help to adjust all images in 3 sections to display correctly in mobile by disabling the one image vertically stacked.

square_problem.png

Link to comment
  • Solution
29 minutes ago, nemoocean said:

Site URL: https://apetrippy.com/

I would like my image to be side by side may be 2 or 3 image per row on mobile. https://apetrippy.com/

However, the mobile display as one image vertically stacked. I have tried my best, but i have no idea how to change it.

Dont know how to search the 'block-yui' neither, may any one post the CSS code to help to adjust all images in 3 sections to display correctly in mobile by disabling the one image vertically stacked.

square_problem.png

Try in Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  #block-c4cece7b237a75a37fff + .row > .col {
    width: 50% !important; 
    float: left !important
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.png.e0804f64cff7ac17c8385f763a56d9fa.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 1/2/2022 at 10:14 PM, nemoocean said:

Thanks so much for your help!!!! It works!!! May I be greedy to know how to set 3 image per row as well?

 

Appreciate much for your help

Just change 50% to 33.333%

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

Site URL: https://apetrippy.com/

I have tried to add new sections using the above code,  but 2 images displayed in mobile is not aligined , i tried to re-do and change number, but cannot aligin it properly in mobile view. Anyone can help me? Thankss

@media only screen and (max-width: 767px) {
  #block-c4cece7b237a75a37fff + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-61d15aa70a469270eb1e1bd1 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-080f1ec6c4cbd0471f76 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-319745b2a01ba6fc2191 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-24780a646f48adcd8b07 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-61d6ae803eb8cd481902072f + .row > .col {
    width: 50% !important; 
    float: left !important  
  }
}
 image.thumb.png.99ff043b52535b9cad3cd331643f823a.pngimage.thumb.png.6dd5ea1c66468ba71e41c0422a7b1f73.png

Link to comment

Edit this code

 #block-61d6ae803eb8cd481902072f + .row > .col {
    width: 50% !important; 
    float: left !important  
  }

to this

 #block-61d6ae803eb8cd481902072f+.row>.col {
        width: 50% !important;
        float: left !important
    }
    #block-61d6ae803eb8cd481902072f+.row>.col: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

it cannot, some are wired

/* Mobile 2 columns */
@media only screen and (max-width: 767px) {
  #block-c4cece7b237a75a37fff + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-61d15aa70a469270eb1e1bd1 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-080f1ec6c4cbd0471f76 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-319745b2a01ba6fc2191 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-24780a646f48adcd8b07 + .row > .col {
    width: 50% !important; 
    float: left !important
  }
  #block-24780a646f48adcd8b07 +.row>.col:nth-child(2n+1) {
        clear: left !important;
  }
  
  #block-61d6ae803eb8cd481902072f + .row > .col {
    width: 50% !important; 
    float: left !important  
  }
  #block-61d6ae803eb8cd481902072f+.row>.col:nth-child(2n+1) {
        clear: left !important;
  }
}

 

image.png.c7b80a18138ba3f2b8cc4ed00de496eb.pngimage.png.7e9417f8380406b16c97921757d8df04.png

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.