fahimmurshed

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

Apr 16th, 2021
1,018
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×