"badge"
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 ----------> <div> <i class="icon-shopping-cart" data-number="20"></i> <i class="icon-certificate" data-text="SALE"></i> <i class="icon-circle" data-text="90% OFF"></i> <i class="icon-comment" data-text="Hey!"></i> <i class="icon-cloud" data-text="Save"></i> <i class="icon-heart" data-text="Love"></i> </div>
div { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 16em; height: 5em; text-align: center; margin: auto; } i { position: relative; color: #990000; font-size: 5em; } i:after { box-sizing: border-box; position: absolute; top: 50%; left: 0; width: 100%; color: white; font-size: .2em; padding: 0 .5em; margin-top: -0.55em; } .icon-shopping-cart { color: #E0B82E; } .icon-shopping-cart:after { content: attr(data-number); margin-top: -1em; margin-left: .5em; } .icon-certificate:after, .icon-circle:after, .icon-comment:after, .icon-cloud:after, .icon-heart:after { content: attr(data-text); } .icon-circle { color: #E49907; } .icon-circle:after { margin-top: -1.2em; } .icon-comment { color: #11A65E; } .icon-cloud { color: #528DB7; } .icon-heart { color: #762C9B; } .icon-heart:after { margin-top: -.8em; }

Related: See More


Questions / Comments: