Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Summary Blog Grid, 2 columns in smaller windows


AndrewMarston

Question

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 post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

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

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

Posted Images

4 answers to this question

Recommended Posts

  • 0

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;
}
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL

--- Happy New Year

Link to post
  • 0

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.

Capture.JPG

Link to post
  • 0
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?

You can send your question to my email to get detail answer. / How to Setup Password & Share URL

--- Happy New Year

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...