Jump to content

Index gallery page on mobile

Recommended Posts

Hi there!

I am working with the Brine template, with an Indexpage as a homepage, where I have some Index-galleries. I'm looking for a way to NOT stack my gallery-photos as displayed on mobile. There are too many images for that, too much scrolling... I would like to display two photos next to eachother in the grid on mobile (therefore two colums). I have tried different versions of CSS-codes already, but non of them seem to work. I really hope someone can help me out! Thanks!!

Cheers, 

Sanne

Link to comment
  • Replies 6
  • Views 730
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
  body#collection-5edcb0aea357687217b1d995 {
    .slides {
        height: auto !important;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        grid-column-gap: 10px;
    }
    .slide {
        position: static !important;
        width: auto !important;
        height: auto !important;
    }
  }
}

 

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!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.