EmilyT1 Posted February 16, 2021 Share Posted February 16, 2021 Site URL: https://www.emthaw.com I use Squarespace 7.1. I have a shop by category and best sellers section and I'd like them to be side by side on mobile (horizontally). On desktop version, they are side by side but on mobile, the size of the images are huge and stacked on top of each other (vertically). There are 4 rows for both section (category and best sellers). Can someone help me with a CSS code? I'd greatly appreciate it. Link to comment
tuanphan Posted February 18, 2021 Share Posted February 18, 2021 Add to Design > Custom CSS /* Mobile 2 columns */ @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 { width: 50% !important; float: left !important; } div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3:nth-child(2n+1) { clear: left !important; } div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 * {font-size: 20px !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
EmilyT1 Posted February 18, 2021 Author Share Posted February 18, 2021 3 hours ago, tuanphan said: Add to Design > Custom CSS /* Mobile 2 columns */ @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 { width: 50% !important; float: left !important; } div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3:nth-child(2n+1) { clear: left !important; } div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 * {font-size: 20px !important;} } Thank you so much for your help! This worked for my "shop by category." Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.