Jump to content

Single Column Grid Gallery On Mobile

Recommended Posts

Posted

Site URL: https://rangework.co/industry

I am trying to customize my site using CSS to make it so that my two column grid galleries only display as a single column while viewing the site on mobile. 

Nothing I've come accross has helped so far. I've used ChatGPT to make some custom code already to apply a hover effect to my grid gallery images and show the description of each image as a hover title. Not sure if that is interfering at all but even ChatGPT cannot come up with a code to help me achieve this.

  • Replies 1
  • Views 107
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

@NicholasThielmann Hi! You can add this code under Website > Pages > Website Tools > Custom CSS to display the gallery grid as a single column on mobile.

@media screen and (max-width: 767px) {
    .gallery .gallery-grid--layout-grid .gallery-grid-wrapper {
        grid-template-columns: 1fr !important;
    }
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.