Advertisement
fahimmurshed

Lowering the number of columns for tablet/mobile view (Elementor)

Apr 16th, 2021
1,535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.45 KB | None | 0 0
  1. /* tablet : 2 columns */
  2. @media (max-width: 768px){  
  3. .elementor-element.elementor-products-grid ul.products {
  4.   grid-template-columns: repeat(2,1fr);
  5. }
  6.  
  7. .elementor-element .elementor-wc-products .woocommerce[class*=columns-] ul.products li.product {
  8. margin: 20px !important;
  9. width:auto;
  10. }
  11.  
  12. }
  13.  
  14. /* mobile : 1 column*/
  15. @media (max-width: 360px){  
  16. .elementor-element.elementor-products-grid ul.products {
  17.   grid-template-columns: repeat(1,1fr);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement