jacicruz Posted July 15, 2022 Share Posted July 15, 2022 Site URL: https://www.jaci-cruz.com/ Hello. I am trying to make my portfolio grid go to two columns on mobile view rather than stack. I've got the two columns but can't get rid of the large gap in between rows. here's my code /* 2 Column Portfolio Grid */ @media only screen and (max-width:640px) { .portfolio-grid-overlay { display: inline-flex; flex-wrap: wrap; justify-content: space-around; } .portfolio-grid-overlay .grid-item { width: 40%; } } Link to comment
Solution tuanphan Posted July 15, 2022 Solution Share Posted July 15, 2022 Remove your code & add this new code @media screen and (max-width:767px) { div#gridThumbs { grid-template-columns: repeat(2,1fr) !important; grid-gap: 10px 10px; } } 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
jacicruz Posted July 15, 2022 Author Share Posted July 15, 2022 That helped a little but it the gap is still large. When I inspect it it seems to be attached to the grid item Link to comment
tuanphan Posted July 15, 2022 Share Posted July 15, 2022 Because you haven't removed this code yet. Display inline-flex & width 40% override Squarespace core code, caused problem 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment