Jump to content

2 columns (mobile only) for 1

Recommended Posts

  • Replies 2
  • Views 462
  • Created
  • Last Reply

could do something like this:

@media screen and (max-width: 767px) {
 section[data-section-id="613300f85ee71865228d8aed"] .sqs-layout .sqs-row:nth-child(2) [class*=sqs-col] {
    float: left !important;
    width: 50% !important;
}
  • kicks in up to 767px (same as squarespace mobile styles)
  • finds the second row in that section (the one that contains the items)
  • sets its float back to left (it gets set to none by the default squarespace mobile layout)
  • sets its width to 50% rather than auto to get 2 columns

not sure if there might be more than four items in this view at some point, if so you might need to tweak that nth-child selector to get the rows you want

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.