Jump to content

Issue with Centring Collage Images on Mobile

Recommended Posts

Site URL: http://supportwise.squarespace.com

Site: http://supportwise.squarespace.com

Password: supportwise

For some reason I cannot seem to get the 'collage' images that are right aligned to be centred on mobile. I have used this code which worked to centre the left aligned images.

@media (max-width: 640px){
  div .sqs-block-image .image-block-outer-wrapper.image-block-v2 {
    flex-direction: column !important;      
    display: flex !important;
    align-items: center !important;
    }
}

Is there a reason that the other images are still right aligned on mobile?

This is how they look on the desktop version of the site:

7815272_ScreenShot2021-04-27at2_04_25pm.thumb.png.ee5148760280a628d994c8b234f8f413.png

And this is how they look on mobile:

411648659_ScreenShot2021-04-27at2_06_37pm.thumb.png.a52ff01a30772a678020760badbe400e.png436718255_ScreenShot2021-04-27at2_07_50pm.thumb.png.4d4c8d4375cfd8a9bed7cf0cf29b3e66.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, Zanthemum said:

Site URL: http://supportwise.squarespace.com

Site: http://supportwise.squarespace.com

Password: supportwise

For some reason I cannot seem to get the 'collage' images that are right aligned to be centred on mobile. I have used this code which worked to centre the left aligned images.


@media (max-width: 640px){
  div .sqs-block-image .image-block-outer-wrapper.image-block-v2 {
    flex-direction: column !important;      
    display: flex !important;
    align-items: center !important;
    }
}

Is there a reason that the other images are still right aligned on mobile?

This is how they look on the desktop version of the site:

7815272_ScreenShot2021-04-27at2_04_25pm.thumb.png.ee5148760280a628d994c8b234f8f413.png

And this is how they look on mobile:

411648659_ScreenShot2021-04-27at2_06_37pm.thumb.png.a52ff01a30772a678020760badbe400e.png436718255_ScreenShot2021-04-27at2_07_50pm.thumb.png.4d4c8d4375cfd8a9bed7cf0cf29b3e66.png

Hi. Add this code into CSS editor

 

@media (max-width: 600px) {
  .sqs-block-image .design-layout-collage.sqs-narrow-width.image-position-right .intrinsic {
  left: 0 !important;
  }
}

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.