braymay Posted May 25, 2023 Share Posted May 25, 2023 Trying to make the CONTRIBUTORS section at the bottom of the page 2 columns on mobile, and just as it is on desktop. Current code: (padding so it lines up with section above) /* MOBILE CONTRIBUTOR GRID */ @media only screen and (max-width: 767px) { section[data-section-id="646da77e04cdb251c0d8c9e6"] { display: flex; flex-wrap: wrap; justify-content: space-between; padding-left: .8rem; padding-right: .8rem; } section[data-section-id="646da77e04cdb251c0d8c9e6"] .list-item { width: 45%; } } URL: https://triangle-bluebird-ersh.squarespace.com/ PW: ofb123 Link to comment
tuanphan Posted May 28, 2023 Share Posted May 28, 2023 Add to Design > Custom CSS /* Mobile 2 columns */ @media screen and (max-width:767px) { .user-items-list-item-container[data-section-id="646da77e04cdb251c0d8c9e6"] { grid-template-columns: repeat(2,1fr) !important; } .user-items-list-item-container[data-section-id="646da77e04cdb251c0d8c9e6"] li { width: 100% !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment