Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Displaying 2 columns / Related Products / Mobile


Esquirebr
Go to solution Solved by tuanphan,

Question

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

Hi,

I’m trying to make the ‘related products’ displayed in 2 columns for mobile users.

I’m currently using the code below to display the product page in 2 columns and it works perfectly,  how can I tweak it in order to also make it apply to related products?


Many thanks in advance. 

 

@media only screen and (max-width: 700px) {
  #productList .product {
    clear: none!important;
    margin-bottom: 2em;
    width: 48%;
  }
  #productList .product:nth-of-type(odd) {
    margin-right: 3%;
    clear: left;
  }
  .product img {
    max-width: 100%;
    max-height: 100%;
  }
}

 

Link to post
  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

7 answers to this question

Recommended Posts

  • 0
On 3/7/2020 at 3:24 AM, tuanphan said:

@media only screen and (max-width: 640px) {
  .ProductItem-relatedProducts-item {
    float: left;
    margin-bottom: 2em;
    width: 48%;
  }
  .ProductItem-relatedProducts-item:nth-of-type(odd) {
    margin-right: 3%;
    clear: left;
  }
}

 

Any idea how to add padding down the middle?

 

IMG_7927.PNG

Link to post
  • 0
11 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
.list-grid {
    grid-column-gap: 10px;
}
}

 

That worked perfectly thank you so much!

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...