Jump to content

Mobile Display 2 Columns

Recommended Posts

The code you're adding might actually be working without you realising -- there's a bug that can interfere with some of the CSS grid code, but it only happens when you're viewing the preview page with the CSS editor open.

Try adding this code and then go out of the CSS editor and refresh the page. You *should* then have two columns on the mobile view. 

@media screen and (max-width: 767px) {
.user-items-list-simple {
    grid-template-columns: repeat(2,1fr);
}
}
Link to comment

With Team Page, add this to Design > Custom CSS

/* Team page - mobile - 2 columns */
@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="622f6307a009840afb150254"] {
    grid-template-columns: repeat(2,1fr) !important;
    grid-gap: 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
On 4/6/2022 at 5:50 AM, taylorperduesocials said:

Thank you so much, I was able to get it to work!! Is there a way to make it so each artist writeup in the rows match up? 

Hi,

What do you mean? Can you describe in more detail?

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
  • 2 weeks later...

Add this new code

@media screen and (max-width: 767px) {
.user-items-list-item-container[data-section-id="622f6307a009840afb150254"] {
   & {
        grid-template-columns:repeat(2,1fr) !important;
        grid-gap: 20px !Important
    }
   li:nth-child(-n+4) .list-item-content__description {
    min-height: 500px !Important;
}
    li:nth-child(n+5) .list-item-content__description {
    min-height: 300px !Important;
}
li:nth-child(n+7) .list-item-content__description {
    min-height: 450px !Important;
}
li:nth-child(n+9) .list-item-content__description {
    min-height: 350px !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

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.