cnissan Posted April 3 Share Posted April 3 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 Link to comment
tuanphan Posted April 7 Share Posted April 7 Can you share site url? We can check easier 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
cnissan Posted April 7 Author Share Posted April 7 Yes, sorry about that. It's - https://www.colinnissan.com/ Thank you Link to comment
cnissan Posted April 7 Author Share Posted April 7 And this is the specific page that's giving me trouble. https://www.colinnissan.com/work Link to comment
tuanphan Posted April 9 Share Posted April 9 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
cnissan Posted April 9 Author Share Posted April 9 (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 Edited April 9 by cnissan Link to comment
cnissan Posted April 9 Author Share Posted April 9 (edited) And for reference, here is the my entire current CSS box after adding your code Thank you. Edited April 9 by cnissan Link to comment
tuanphan Posted April 13 Share Posted April 13 On 4/9/2024 at 9:05 PM, cnissan said: And for reference, here is the my entire current CSS box after adding your code Thank you. Hi, Can you send all current code in CSS box? I think some code are conflict 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
cnissan Posted April 20 Author Share Posted April 20 Yes, sure. Here is the CSS Box with all my current code. Thank you! Colin Link to comment
tuanphan Posted April 22 Share Posted April 22 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
cnissan Posted April 22 Author Share Posted April 22 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 Link to comment
tuanphan Posted April 25 Share Posted April 25 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 You can check again. I just checked & I still see you are using old code Maybe you forgot to click Save. You need to use new code (in new code, I added some red code) 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 cnissan Posted April 25 Author Solution Share Posted April 25 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 Link to comment
tuanphan Posted April 27 Share Posted April 27 I see you marked it as solved. Did you solve or still need help? 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
cnissan Posted April 29 Author Share Posted April 29 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 tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment