"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/crazyrohila/pen/kmpvg?q=product&order=popularity&depth=everything&show_forks=false" /> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script> <style class="cp-pen-styles">@charset "UTF-8"; *, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; } .product img { max-width: 100%; height: auto; } .product--title { color: #008080; font-weight: bold; font-size: 1.5em; font-family: serif; padding: 20px 0; text-align: center; } .product--title h2 { display: inline-block; border-bottom: 2px dashed; } .product--image, .product--details { float: left; width: 45%; } .product--image { padding-right: 3%; } .product--image .icon-images img { height: 80px; margin: 0 10px; cursor: pointer; border: 1px solid #e5e5e5; } .product--price .product--price_price { color: rgba(20, 180, 180, 0.9); font-size: 1.2em; padding-right: 10px; } .product--price .product--price_offer { color: indianred; border: 1px solid #952e2e; border-radius: 5px 5px; padding: 1px 3px; font-size: .7em; } .product--desc { font-family: sans; } .product--desc p { margin: 20px 0px; } .product--size { margin: 20px 0; } .product--size span { display: inline-block; width: 35px; border: 1px solid #999; border-radius: 4px 4px; text-align: center; padding: 1px 2px; text-transform: uppercase; cursor: pointer; } .product--size span.active { color: #fff; background: #008080; } .product--quantity input { border: 0; outline: 0; border-left: 1px dotted; border-right: 1px dotted; border-bottom: 1px dashed; padding: 1px 3px; text-align: center; } .product--quantity input::-webkit-inner-spin-button, .product--quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .add-to-cart { margin: 10px 10px 10px 0; } .btn { background: none; border: 0; outline: 0; -webkit-appearance: none; } .btn.btn--cart { border: 1px solid indianred; border-radius: 4px; padding: 3px 30px 3px 5px; box-shadow: 0px 0px 3px 0px indianred; position: relative; overflow: hidden; text-align: left; font-size: 1.5em; } .btn.btn--cart:after { content: "⇨"; padding-left: 2px; position: absolute; right: 150%; transition: all .4s; color: #fff; } .btn.btn--cart:hover, .btn.btn--cart:focus { background: indianred; color: #fff; text-shadow: 2px 2px 3px #666; transition: all .4s; } .btn.btn--cart:hover:after, .btn.btn--cart:focus:after { right: 2%; } @media screen and (max-width: 500px) { .product--image, .product--details { float: none; width: 100%; padding: 10px 5px; margin: 5px 10px; } } </style></head><body> <div class="product"> <div class="product--title"> <h2>My Awesome Product</h2> </div> <div class="product--body"> <div class="product--image"> <div class="icon-images"> <img src="http://stalkbuylove.com/media/catalog/product/cache/1/image/393x502/9df78eab33525d08d6e5fb8d27136e95/i/n/in1335avv-167-front.jpg"/> <img src="http://stalkbuylove.com/media/catalog/product/cache/1/image/393x502/9df78eab33525d08d6e5fb8d27136e95/i/n/in1335avv-167-detail.jpg"/> <img src="http://stalkbuylove.com/media/catalog/product/cache/1/image/393x502/9df78eab33525d08d6e5fb8d27136e95/i/n/in1335avv-167-back.jpg"/> </div> <img src="http://stalkbuylove.com/media/catalog/product/cache/1/image/393x502/9df78eab33525d08d6e5fb8d27136e95/i/n/in1335avv-167-back.jpg" class="display-img"> </div> <div class="product--details"> <div class="product--price"> <span class="product--price_price">Rs. 800</span> <span class="product--price_offer">new arrivel !</span> </div> <div class="product--desc"><p>This is my awesome product. Its comfortable to wear, and nice to look.</p></div> <div class="product--size"> <span>s</span> <span class="active">m</span> <span>l</span> <span>xl</span> </div> <div class="product--quantity"> <input class="quantity" type="number" placeholder="quantity" min="1" max="10" value="1"></input> </div> <div class="add-to-cart"> <button class="btn btn--cart">Shop it!</button> </div> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >// Change active class on product sizes. var sizes = jQuery(".product--size").find("span"); sizes.click(function() { sizes.removeClass("active"); $(this).addClass("active"); }); // Change image on thumbnail click. var thumbs = $(".icon-images").find("img"); thumbs.click(function() { var src = $(this).attr("src"); var dp = $(".display-img"); dp.attr("src", src); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: