"Awesome discount label"
Bootstrap 3.1.0 Snippet by maridlcrmn

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <section id="labels"> <div class="container"> <div class="row"> <div class="col-sm-6 col-md-3"> <div class="dl"> <div class="brand"> <h2> mango </h2> </div> <div class="discount alizarin"> 30% <div class="type"> off </div> </div> <div class="descr"> <strong> Mei mucius gloriatur reprimique mollis*. </strong> Ad sonet perfecto antiopam mei, denique molestie ne has. </div> <div class="ends"> <small> * Conditions and restrictions apply. </small> </div> <div class="coupon midnight-blue"> <a data-toggle="collapse" href="#code-1" class="open-code">Get a code</a> <div id="code-1" class="collapse code"> LV5MAY14 </div> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="dl"> <div class="brand"> <h2> lacoste </h2> </div> <div class="discount emerald"> 50% <div class="type"> off </div> </div> <div class="descr"> <strong> Ea per iuvaret ocurreret*. </strong> sit ea detraxit menandri mediocritatem, in mel dicant mentitum. </div> <div class="ends"> <small> * Conditions and restrictions apply. </small> </div> <div class="coupon midnight-blue"> <a data-toggle="collapse" href="#code-2" class="open-code">Get a code</a> <div id="code-2" class="collapse in code"> MNO123ST </div> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="dl"> <div class="brand"> <h2> converse </h2> </div> <div class="discount peter-river"> 15% <div class="type"> off </div> </div> <div class="descr"> <strong> Solet consul tractatos ei pro*. </strong> Ei mei quot invidunt explicari, placerat percipitur intellegam. </div> <div class="ends"> <small> * Conditions and restrictions apply. </small> </div> <div class="coupon midnight-blue"> <a data-toggle="collapse" href="#code-3" class="open-code">Get a code</a> <div id="code-3" class="collapse code"> OLV4SY3R </div> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="dl"> <div class="brand"> <h2> adidas </h2> </div> <div class="discount amethyst"> 25% <div class="type"> off </div> </div> <div class="descr"> <strong> Cu aliquip persius alterum duo*. </strong> Possit equidem disputando usu et, sea invidunt scriptorem in. </div> <div class="ends"> <small> * Conditions and restrictions apply. </small> </div> <div class="coupon midnight-blue"> <a data-toggle="collapse" href="#code-4" class="open-code">Get a code</a> <div id="code-4" class="collapse code"> ZUY4OPLQ </div> </div> </div> </div> </div> </div> </section>
section { padding: 5% 0; } .alizarin { background: #e74c3c; } .amethyst { background: #9b59b6; } .emerald { background: #2ecc71; } .midnight-blue { background: #2c3e50; } .peter-river { background: #3498db; } .dl { background: #f0f0f0; padding: 30px 0; border-radius: 20px; position: relative; } .dl:before { content: " "; height: 20px; width: 20px; background: #ddd; border-radius: 20px; position: absolute; left: 50%; top: 20px; margin-left: -10px; } .dl .brand { text-transform: uppercase; letter-spacing: 3px; padding: 10px 15px; margin-top: 10px; text-align: center; min-height: 100px; } .dl .discount { min-height: 50px; position: relative; font-size: 80px; line-height: 80px; text-align: center; font-weight: bold; padding: 20px 15px 0; color: #f1c40f; } .dl .discount:after { content: " "; border-right: 20px solid transparent; border-left: 20px solid transparent; position: absolute; bottom: -20px; left: 20%; } .dl .discount.alizarin:after { border-top: 20px solid #e74c3c; } .dl .discount.peter-river:after { border-top: 20px solid #3498db; } .dl .discount.emerald:after { border-top: 20px solid #2ecc71; } .dl .discount.amethyst:after { border-top: 20px solid #9b59b6; } .dl .discount .type { font-size: 20px; letter-spacing: 1px; text-transform: uppercase; margin-top: -30px; } .dl .descr { color: #999; margin-top: 10px; padding: 20px 15px; } .dl .ends { padding: 0 15px; color: #f1c40f; margin-bottom: 10px; } .dl .coupon { min-height: 50px; text-align: center; text-transform: uppercase; font-weight: bold; font-size: 18px; padding: 20px 15px; } .dl .coupon a.open-code { color: #16a085; } .dl .coupon .code { letter-spacing: 1px; border-radius: 4px; margin-top: 10px; padding: 10px 15px; color: #f1c40f; background: #f0f0f0; }

Related: See More


Questions / Comments:

Hi! amazing. I try to put five , but could not. What would be the best way to add a label more?

Emanuel Borda () - 8 years ago - Reply 0


you would need to replace col-md-3 class with col-md-2 class to get 5 items.

maxsurguy () - 8 years ago - Reply 0


Excellent work here. Love the colours and the drop down "reveal code" section :)

AZU () - 9 years ago - Reply 0


nice color full

Mirchu () - 9 years ago - Reply 0


Good Snippet, I like it

Venu () - 9 years ago - Reply 0


Really liked it =) tks

Bruno Seixas () - 9 years ago - Reply 0