Jump to content

[Share] How to change column of Simple List on Mobile

Recommended Posts

You can use these CSS code (Website Tools > Custom CSS) to change number of columns of Simple List Section on Mobile.

If CSS doesn't work, you can send link to page where you use Simple List, I will check again.

#1. All Simple Lists

@media screen and (max-width:767px) {
  ul.user-items-list-item-container.user-items-list-simple {
      grid-template-columns: repeat(2,1fr);
      grid-gap: 10px 10px !important;
  }
}

image.png.2a42153cb67fdc35cdc64b0c79417db5.png

Result

image.thumb.png.148c96e17a86eff3addc01dd3a5b637e.png

#2. All Simple Lists on One Page

First, you need to find Page ID. You can use this tool.

In my example, it is: #collection-66b15ce77e10fc00a3dfeb31

image.png.702e92a975e9e141eb67bcf255f3bc5e.png

Next, use CSS code like this

#collection-66b15ce77e10fc00a3dfeb31 {
  @media screen and (max-width:767px) {
    ul.user-items-list-item-container.user-items-list-simple {
        grid-template-columns: repeat(2,1fr);
        grid-gap: 10px 10px !important;
    }
  }
}

image.png.b95644d307ae94f030595f7bce03a137.png

#3. Specific Simple List

First, you need to find Simple List Section ID. Use #2 tool.

In my example, it is:

section[data-section-id="66b15cf3636b196012828b12"]

image.png.f9c2ea816b3b555e11830f4f049d38e8.png

Next, use CSS code like this

section[data-section-id="66b15cf3636b196012828b12"] {
  @media screen and (max-width:767px) {
    ul.user-items-list-item-container.user-items-list-simple {
        grid-template-columns: repeat(2,1fr);
        grid-gap: 10px 10px !important;
    }
  }
}

image.png.a6263b528c2684b9401355df304a6155.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
  • Replies 0
  • Views 293
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.