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

Edited by Sannevandergraaf
Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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

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.