Jump to content

Summary Blog Grid, 2 columns in smaller windows

Recommended Posts

Site URL: https://www.pixelsandpaths.com/

Hello,

I've customized the CSS to show a summary > grid blog post block as 2 columns for mobile, but there's a window size range where 3 posts are displayed with the 4th by itself below. For some reason, changing the media query pixel value only messes up the situation further. I've linked the work-in-progress site at the top of this post. Can anyone figure out how to make it display either 4 across or 2x2 stacked without the 3 on the top, 1 on the bottom in between?

Here's the CSS I'm currently using.

@media only screen and (max-width: 631px)
{.sqs-block-summary-v2 .summary-item {
  	clear: none !important;
    width: 50% !important;
  padding: 10px !important;
  }}

Thanks so much for an insight you can offer.

Capture.JPG

Capture2.JPG

Capture3.JPG

Link to comment
  • Replies 4
  • Views 670
  • Created
  • Last Reply

Edit your code to

@media only screen and (max-width: 640px) {
.sqs-block-summary-v2 .summary-item {
  	clear: none !important;
    width: 50% !important;
  padding: 10px !important;
}
.sqs-block-summary-v2 .summary-item:nth-child(2n+1) {
    clear: left !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
  • 2 weeks later...
On 9/3/2020 at 11:14 PM, AndrewMarston said:

Thanks. For some reason it appears the problem of stacking 3 posts on 1 row and moving the 4th to its own row persists between 1166px down to 880px.

I've tried removing all other custom CSS except the code you posted, but can't figure out how to get the posts to move directly from 4 across to 2 x 2.

Sorry, didn't get the notification. Have you solved it yet?

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

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.