Jump to content

Help with 4 row image blocks customization

Recommended Posts

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

I use Squarespace 7.1. I have a shop by category and best sellers section and I'd like them to be side by side on mobile (horizontally). On desktop version, they are side by side but on mobile, the size of the images are huge and stacked on top of each other (vertically). There are 4 rows for both section (category and best sellers). Can someone help me with a CSS code? I'd greatly appreciate it. 

Edited by EmilyT1
Link to comment

Add to Design > Custom CSS

/* Mobile 2 columns */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3:nth-child(2n+1) {
    clear: left !important;
}
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 * {font-size: 20px !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
3 hours ago, tuanphan said:

Add to Design > Custom CSS


/* Mobile 2 columns */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3:nth-child(2n+1) {
    clear: left !important;
}
div#block-yui_3_17_2_1_1604951950007_46430+.row>.span-3 * {font-size: 20px !important;}
}

 

Thank you so much for your help! This worked for my "shop by category."

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.