Jump to content

2 articles per row mobile view

Recommended Posts

Site URL: https://www.ghoulsmagazine.com/editorials

Hello,

I'd like to view two articles per row on mobile fort the first summary block section

https://www.ghoulsmagazine.com/editorials

image.png.cf4121d32285e418e77de36783edf0ec.png

 

 

I have added this custom CSS at the moment but it doesn't work.

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1610091206951_189.summary-item-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
}

Could somebody please review this for me?

 

Thank you so much!


 

Link to comment

Add to Design > Custom CSS

/* Summary 2 items */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1610130169546_11297 {
.summary-item {
    width: 50%;
    float: left;
}
.summary-thumbnail-outer-container {
    width: 100% !important;
}
.summary-content.sqs-gallery-meta-container {
    width: 100% !important;
}
img.summary-thumbnail-image.loaded {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
}
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.