Jump to content

Change the way images stack in mobile view

Recommended Posts

Posted

Is there a way to get images (all images throughout the site) to stack by rows instead of columns?

I am working here:

https://www.wolheimstyle.com/drinks-new

I am working in classic layout mode instead of fluid engine. I know it's possible to re-arrange things using fluid engine, but there are so many images in each of her portfolios that it's totally unwieldy and complicated in fluid engine's mobile view.

 

Thanks! 

Posted

Add this code to Website > Website Tools > Custom CSS to keep same layout on mobile

@media screen and (max-width:767px) {
div#page-section-6542d228c6fbe635c6d117b7>.row>.span-4 {
    width: 33.3333% !important;
    float: left !important;
}

div#page-section-6542d228c6fbe635c6d117b7>.row>.span-8 {
    width: 66.66667% !important;
    float: left !important;
}

div#page-section-6542d228c6fbe635c6d117b7>.row>.span-8 .span-4 {
    width: 50% !important;
    float: left !important;
}
}

image.png.82b280cb6384cd5d318737bb655f0e74.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 weeks later...
Posted

Thank you, tuanphanI will check this out.

I ended up making two versions of each portfolio to get things to stack the way my client wanted. One gets hidden on mobile and one gets hidden on the desktop. It's a little clunky but it works.

 

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.