Jump to content

Summaries in grid layout.

Recommended Posts

  • Replies 11
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi,

 

On my index basically 2 per row. 

The summary of product will be probably 4. But I think I could change to code in the future. 

 

Mobile all 1 per row.

Only Podcast I think could be 2 rows. 

 

Thanks,

 

Posted
On 1/29/2024 at 3:30 AM, FilipKar said:

Hi,

 

On my index basically 2 per row. 

The summary of product will be probably 4. But I think I could change to code in the future. 

 

Mobile all 1 per row.

Only Podcast I think could be 2 rows. 

 

Thanks,

 

You mean change this to 2 items/row on mobile?

image.png.afbac1633fc68e80feb401af2393c569.png

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!)

Posted

Add this code to Website > Website Tools (under Not Linked) > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item {
    width: calc(~"50% - 20px") !important;
    float: left !important;
    clear: none !important;
}
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) {
    margin-right: 20px !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!)

Posted

Cool,

and is possible to force summaries to be 4 in a row on laptop? My 13inch looks great but 15inch there is empty space. 

I want to be the same across all sizes. Thanks,

Screenshot 2024-02-05 at 22.55.55.png

Screenshot 2024-02-05 at 22.56.06.png

Posted
On 2/6/2024 at 4:57 AM, FilipKar said:

Cool,

and is possible to force summaries to be 4 in a row on laptop? My 13inch looks great but 15inch there is empty space. 

I want to be the same across all sizes. Thanks,

Screenshot 2024-02-05 at 22.55.55.png

Screenshot 2024-02-05 at 22.56.06.png

Use this 

@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item {
    width: calc(~"25% - 20px") !important;
    float: left !important;
    clear: none !important;
}
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) {
    margin-right: 20px !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!)

Posted

Use this new code

@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item {
    width: calc(~"25% - 20px") !important;
    float: left !important;
    clear: none !important;
}
div#block-yui_3_17_2_1_1704638721399_15110 .summary-item:nth-child(2n+1) {
    margin-right: 20px !important;
}
div#block-yui_3_17_2_1_1704638721399_15110 .summary-thumbnail-container img {
    width: 100% !important;
    height: auto !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!)

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.