Jump to content

Disable images from stacking on mobile — Keep desktop layout of image blocks on mobile.

Recommended Posts

Posted
4 hours ago, YMua said:

Site URL: https://www.muamedia.com/about

The images on this my website page (www.muamedia.com/about) are great on desktop but they are stacked on mobile and looks terrible. I want to make sure that the layout of images on mobile are exactly the way it is on desktop.

Can anyone help?

 

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1645141100641_399368 + div {
    display : flex;
    justify-content: space-between;
  }

  #block-yui_3_17_2_1_1645141100641_399368 + div  > .span-6 {
    width: 40% !important;
  }
  #block-yui_3_17_2_1_1645141100641_399368 + div  > .span-6  > .image-block {
    width: 100% !important;
    padding: 0;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.