ChuckG-Art Posted April 14, 2021 Posted April 14, 2021 Site URL: https://www.chuckgumpert.com/merch-ccb Hello, I've seen many CSS fixes for this in the forum. But none seem to work with my site. Is it only a 7.1 thing? Is it not possible with Avenue template? If the 2 column thing isn't a possibility, I'd alternatively like to add padding between products when viewed in one column on mobile. Thanks in advance.
tuanphan Posted April 15, 2021 Posted April 15, 2021 21 hours ago, ChuckG-Art said: Site URL: https://www.chuckgumpert.com/merch-ccb Hello, I've seen many CSS fixes for this in the forum. But none seem to work with my site. Is it only a 7.1 thing? Is it not possible with Avenue template? If the 2 column thing isn't a possibility, I'd alternatively like to add padding between products when viewed in one column on mobile. Thanks in advance. Add to Design > Custom CSS > Then save & reload your site /* mobile products 2 columns */ @media screen and (max-width:640px) { div#productList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column-gap: 10px; grid-row-gap: 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!)
ChuckG-Art Posted April 15, 2021 Author Posted April 15, 2021 6 hours ago, tuanphan said: Add to Design > Custom CSS > Then save & reload your site /* mobile products 2 columns */ @media screen and (max-width:640px) { div#productList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column-gap: 10px; grid-row-gap: 10px; } } It worked! BUT any reason the first item in the first row starts in the SECOND column??(first item in first column is blank space??)Thanks!
tuanphan Posted April 17, 2021 Posted April 17, 2021 On 4/16/2021 at 3:56 AM, ChuckG-Art said: It worked! BUT any reason the first item in the first row starts in the SECOND column??(first item in first column is blank space??)Thanks! Hi. Remove above & add new code /* mobile products 2 columns */ @media screen and (max-width:640px) { div#productList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column-gap: 10px; grid-row-gap: 10px; } div#productList:before { display: none !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!)
ChuckG-Art Posted April 17, 2021 Author Posted April 17, 2021 3 hours ago, tuanphan said: Hi. Remove above & add new code /* mobile products 2 columns */ @media screen and (max-width:640px) { div#productList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column-gap: 10px; grid-row-gap: 10px; } div#productList:before { display: none !important; } } Perfect! Thanks so much!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.