Jump to content

How to make my home page image become grid in mobile?

Recommended Posts

  • Replies 3
  • Views 341
  • Created
  • Last Reply
9 hours ago, tuanphan said:

Add to Design > Custom CSS


/* Mobile-Homepage-Best sellers */
@media screen and (max-width:767px) {
div#block-6bfda2f7db7286b58d2f+.row .span-4 {
    width: 33.3333% !important;
    float: left !important;
}
}

 

Thanks! It works! Just one quick question for another 4 images below this block. How can I made them as grid and 2 item per row? Thanks!

Link to comment
On 5/25/2021 at 12:05 AM, Elena1314Ryan said:

Thanks! It works! Just one quick question for another 4 images below this block. How can I made them as grid and 2 item per row? Thanks!

Use new code

/* Mobile-Homepage-Best sellers */
@media screen and (max-width:767px) {
div#block-6bfda2f7db7286b58d2f+.row .span-4 {
    width: 33.3333% !important;
    float: left !important;
}
div#page-section-608d05398a421213d84d115c .span-6 .span-3 {
    width: 50% !important;
    float: left !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

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.