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. 

Link to comment
  • Replies 2
  • Views 385
  • Created
  • Last Reply

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

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.