Jump to content

How to show 2 cards per row in mobile view? - SQS 7.1

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://on7studio.squarespace.com/

Password: 1500Broadway

Please click to the "Classes" page first.

So if you look at the card I put in the section below, is there anyone know which code could make it show 2 cards per row on mobile browser? And also how to make each of the Card's Title font to Bold? There are only adjustment options for description but not title.

 

Thank you,

Leesh 

Link to comment
  • Solution

Add to Design > Custom CSS

/* Classes */
h2.list-item-content__title {
    font-weight: bold !important;
}
@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="6221971560e0c07914efa399"] {
    grid-template-columns: repeat(2,1fr) !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
  • 3 months later...
2 hours ago, ZABS860 said:

Hello, I'm trying to do this on https://www.aimeesternestates.com/press (password: Newpassword) but can't seem to get it to work. Pasted below is my code, can you please advise?

//Make List 2 Columns on Mobile//

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

 

Use this code

@media screen and (max-width:767px) {
.user-items-list-item-container[data-section-id="628d64b57c0c6a0128543652"] {
    grid-template-columns: repeat(2,1fr) !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
20 hours ago, ZABS860 said:

I did leave it, it's still there as:

//Make List 2 Columns on Mobile//

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

I see it worked on my end. Can you try checking on another device?

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.