Jump to content
Go to solution Solved by cnissan,

Recommended Posts

Hello, 

Hoping someone can help me with a line of CSS or two that might fix the glitchy look of the (attached) grid page of my mobile site on this page. I've also included an image of the desktop version which looks exactly how I would like it to. I've tried changing the aspect ratios of the grid items and it's not helping, so I'm guessing it's a glitch that's in need of a CSS solution. 

Thanks so much for your help.

Colin

 

image.thumb.png.694e95ccaa66e6aa83f82e6fa1025c23.pngimage.thumb.png.3d4f6a91de07861ddf5d485947a4d319.png

Link to comment

Don't remove any code in your CSS box, add this code to CSS box

@media screen and (max-width:767px) {
body#collection-65fc9bf1c73e51445842803e {
.gallery-grid-item img {
    min-height: 135px;
    position: static !important;
}

.gallery-grid-item-wrapper {
    padding: unset !important;
    height: auto !important;
}

a.gallery-grid-image-link {
    position: static !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
Posted (edited)

Thank you so much, Tuan. I added this code to the CSS box. The page looks better but the video images on the left are still smaller than the ones on the right. (pic attached).

Any thoughts?

Thank you again!

Colin

 

 

 

 

image.png

Edited by cnissan
Link to comment

Remove code I sent & use this new code

@media screen and (max-width:767px) {
body#collection-65fc9bf1c73e51445842803e {
.gallery-grid-wrapper {
    grid-gap: 5px !important;
    width: 100% !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}
.gallery-grid-item img {
    min-height: 135px;
    position: static !important;
}

.gallery-grid-item-wrapper {
    padding: unset !important;
    height: auto !important;
}

a.gallery-grid-image-link {
    position: static !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

Weird, it's still the same when I replace the old code with the new one you just sent - the videos on the left are smaller than the videos on the right. (see attached) Any other thoughts?

Thanks Tuan!

Colin

 

image.thumb.png.d9b1332a6938f7807d085918bb34e3b0.png

Link to comment
On 4/22/2024 at 5:48 PM, cnissan said:

Weird, it's still the same when I replace the old code with the new one you just sent - the videos on the left are smaller than the videos on the right. (see attached) Any other thoughts?

Thanks Tuan!

Colin

 

image.thumb.png.d9b1332a6938f7807d085918bb34e3b0.png

You can check again. I just checked & I still see you are using old code

Maybe you forgot to click Save.

image.png.260af3de94e93499c92ba68f6a98f504.png

 

You need to use new code (in new code, I added some red code)

image.thumb.png.030b67f39aef2f7433e59be1fca1b9e5.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!)

Link to comment
  • Solution

Hi Tuan,

Sorry for all the back and forth. Now it's working correctly on the top half of my grid but not on the bottom. So strange. I attached a screenshot from my phone so you can see how the top ones look good, then they the videos on the left start to get smaller when you scroll down to the bottom ones. 

I attached my code again too. Thank you. We're getting closer!

Colin

image.png

image.png

Link to comment

Hi Tuan, 

I think it's solved. There must have been a bug in some of gallery images but I resized them in the grid and now they appear normal for some reason. But your code helped to get me 90% of the way. Thanks so much for sticking with it! Really appreciate it.

Colin

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.