Created
September 4, 2013 10:33
-
-
Save R3V1Z3/6435326 to your computer and use it in GitHub Desktop.
CSS for the MarketPress e-Commerce plugin for WordPress to display products in a 3-column grid format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div#mp_product_list .product { | |
display: inline; | |
float: left; | |
width: 29%; | |
margin: 2%; | |
} | |
div#mp_product_list .product:nth-child(3n+1) { | |
clear: both; | |
} | |
@media all and (max-width: 800px) { | |
div#mp_product_list .product { | |
width: 46%; | |
margin: 2%; | |
} | |
div#mp_product_list .product:nth-child(3n+1) { | |
clear: none; | |
} | |
div#mp_product_list .product:nth-child(2n+1) { | |
clear: both; | |
} | |
} | |
@media all and (max-width: 500px) { | |
div#mp_product_list .product { | |
width: 100%; | |
margin: 0; | |
} | |
} | |
div#mp_product_list .product img.alignleft, .entry-content .wp-caption.alignleft { | |
margin-left: 0px; /* image alignment adjustment for Twenty-Thirteen theme */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment