Jump to content

3 images side by side on mobile view

Recommended Posts

Hi @tuanphan

I have been through this thread and tried various CSS codes without any luck. I want to display a gallery with 3 images per row on Mobile, and was sure this would work:

/* Mobile gallery */
@media screen and (max-width:767px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(3,1fr) !important;
}
}

 

But no luck. Here is the page:

https://www.socialseason.net/instagram-links

Please can anyone help?

Edited by Adam9
Link to comment
On 2/13/2024 at 2:17 PM, Adam9 said:

Hi @tuanphan

I have been through this thread and tried various CSS codes without any luck. I want to display a gallery with 3 images per row on Mobile, and was sure this would work:

/* Mobile gallery */
@media screen and (max-width:767px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(3,1fr) !important;
}
}

 

But no luck. Here is the page:

https://www.socialseason.net/instagram-links

Please can anyone help?

Use this code

@media screen and (max-width: 767px) {
[data-section-id="65b9cca28b20e75fd16ec8db"] .gallery-grid-wrapper {
        grid-template-columns:repeat(3,1fr) !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

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.