Jump to content

How to show 2 items per row on mobile platform?

Recommended Posts

Hey Edwardxu, this is a great use for flexbox. Try this:

@media(max-width:767px) {
  .products .list-grid{
    display:flex;
    flex-wrap:wrap;
  }
  .grid-item{
    flex: 0 1 50%;
  }
}

Let me know if that does it for you!

Hey-o, my name is Will and I help Squarespace designers and developers with technical things.

I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life  - although I'm only an expert in 2 of these. 

Check out my plugin store or sign up for my newsletter

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.