"product"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/eatsleepweb/pen/xdbqKG?depth=everything&order=popularity&page=32&q=product&show_forks=false" /> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Montserrat:300,500,600'> <style class="cp-pen-styles">body { font-family: 'Montserrat', 'Gotham', Helvetica, Arial, sans-serif; letter-spacing: 0.05rem; font-size: 16px; } h1, h2, h3 { text-transform: uppercase; } h2 { font-size: 1.5rem; } @media (max-width: 767px) { h2 { font-size: 1.2rem; } } h3 { font-weight: 500; } p { font-weight: 300; } ul { list-style: none; padding: 0; margin: 0; } .products { padding: 20px; } @supports (display: grid) { .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); grid-gap: 2rem; grid-auto-rows: 600px; grid-auto-columns: 1fr; grid-auto-flow: dense; } @media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); grid-gap: 10px; grid-auto-rows: auto; } } } .product { text-align: center; padding: 10px; float: left; } @media (max-width: 767px) { .product { width: 50%; } } @supports (display: grid) { .product { width: auto; padding: 0; } } .product-quickview { opacity: 0; transition: opacity 0.5s ease; display: block; font-size: 1rem; text-transform: uppercase; padding: 10px; border: 1px solid black; background-color: white; } .product-link { display: flex; flex-direction: column; height: 100%; } .product-link:hover .product-quickview { opacity: 1; } .product-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; } .product-image { display: block; object-fit: cover; margin: 0 auto; max-width: 100%; } @media (min-width: 768px) { .product-image { height: 450px; } } .product-tag { color: #A48CA2; margin: 5px 0; } .is-red { color: #A40802; } .product-title { margin: 5px 0; font-weight: 500; } .product-price { margin: 5px 0; font-weight: 300; font-size: 1.1rem; } .product-standard-price { text-decoration: line-through; } .product-promo { position: relative; overflow: hidden; float: left; } .promo-content-wrapper { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 10%; display: flex; flex-direction: column; justify-content: center; align-content: stretch; } .promo-content { border: 1px solid white; padding: 10%; display: flex; flex-direction: column; justify-content: center; flex: 1; color: white; background-color: rgba(0, 0, 0, 0.15); } .promo-content a { font-weight: 300; text-decoration: underline; } @media (max-width: 767px) { .promo-content h1 { font-size: 1.25rem; } } .promo-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } @supports (display: grid) { .promo-span-row-2 { grid-row: span 2; } } .promo-span-column-2 { width: 40%; } @media (max-width: 767px) { .promo-span-column-2 { width: 100%; } } @supports (display: grid) { .promo-span-column-2 { width: auto; grid-column: span 2; } } .promo-span-column-3 { width: 60%; } @media (max-width: 767px) { .promo-span-column-3 { width: 100%; } } @supports (display: grid) { .promo-span-column-3 { width: auto; grid-column: span 3; } @media (max-width: 767px) { .promo-span-column-3 { grid-column: span 2; } } } </style></head><body> <h1>Products</h1> <ul class="products"> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h3 class="product-tag">New</h3> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product-promo promo-span-column-2"> <picture> <source media="(min-width: 768px)" srcset="https://www.dropbox.com/s/amqjzfn6675qgfd/01_winepromo_3x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/k7d49l4eee2egpy/01_winepromo_2x.jpg?dl=0&raw=1 1x" /> <img srcset="https://www.dropbox.com/s/k7d49l4eee2egpy/01_winepromo_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/0yvea6s3jbhwhbr/01_winepromo_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/0yvea6s3jbhwhbr/01_winepromo_1x.jpg?dl=0&raw=1" class="promo-image"/> </picture> <div class="promo-content-wrapper"> <div class="promo-content"> <h1>Free Shipping on orders over $100</h1> <p><a>Click here for more details.</a></p> </div> </div> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h3 class="product-tag is-red">Sale!</h3> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price"><span class="product-standard-price">$50</span> <span class="product-sale-price is-red">$45</span></p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product-promo promo-span-row-2"> <picture> <source media="(min-width: 768px)" srcset="https://www.dropbox.com/s/l34v7v67dcooo9k/02_winepromo_3x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/mtpg1mdvz6empr0/02_winepromo_2x.jpg?dl=0&raw=1 1x" /> <img srcset="https://www.dropbox.com/s/mtpg1mdvz6empr0/02_winepromo_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/rzee1swln82qxjt/02_winepromo_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/rzee1swln82qxjt/02_winepromo_1x.jpg?dl=0&raw=1" class="promo-image"/> </picture> <div class="promo-content-wrapper"> <div class="promo-content"> <h1>Free Shipping on orders over $100</h1> <p><a>Click here for more details.</a></p> </div> </div> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h3 class="product-tag">New</h3> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product-promo promo-span-row-2 promo-span-column-3"> <picture> <source media="(min-width: 768px)" srcset="https://www.dropbox.com/s/oypc18zowvyvsq4/03_winepromo_3x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/kkfn2gp58iu1pfd/03_winepromo_2x.jpg?dl=0&raw=1 1x" /> <img srcset="https://www.dropbox.com/s/kkfn2gp58iu1pfd/03_winepromo_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/keeovxgzuvzgov1/03_winepromo_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/keeovxgzuvzgov1/03_winepromo_1x.jpg?dl=0&raw=1" class="promo-image"/> </picture> <div class="promo-content-wrapper"> <div class="promo-content"> <h1>Free Shipping on orders over $100</h1> <p><a>Click here for more details.</a></p> </div> </div> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h3 class="product-tag is-red">Sale!</h3> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price"><span class="product-standard-price">$50</span> <span class="product-sale-price is-red">$45</span></p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> <li class="product"> <a class="product-link"> <button type="button" class="product-quickview">Quick Shop</button> <img srcset="https://www.dropbox.com/s/7so4scjliunisf5/winebottle_2x.jpg?dl=0&raw=1 2x, https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1 1x" src="https://www.dropbox.com/s/qxouisodegmlglc/winebottle_1x.jpg?dl=0&raw=1" class="product-image"/> <div class="product-info"> <h3 class="product-tag">New</h3> <h2 class="product-title">2012 Chardonnay</h2> <p class="product-price">$50</p> </div> </a> </li> </ul> </body></html>

Related: See More


Questions / Comments: