Jump to content

PEOPLE SECTION* Trying to make it two columns on mobile

Recommended Posts

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
  • Replies 1
  • Views 81
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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;
}
}

image.png.dfaf912ff87bab672fccb7f2e335853f.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.