Jump to content

Mobile View

Recommended Posts

Site URL: http://kimellaco.com

I'm trying to increase the space between my product images on the mobile display.

I currently have this code in the custom css but the images are very close to each other. How can I increase the space? The password is Kimmy

@media screen and (max-width:767px) {
.products.collection-content-wrapper .list-grid .grid-item {
    float: left;
    width: 49%;
}
.products.collection-content-wrapper .list-grid .grid-item:nth-child(2n+1) {
    margin-right: 1%;
    clear: left;
}
}

Link to comment
  • Replies 4
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.list-grid .grid-item {
    float: none !important;
    width: auto !important;
}
.list-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-row-gap: 10px;
    grid-column-gap: 10px;
}
}

 

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.