"cart counter"
Bootstrap 3.0.0 Snippet by zeeshan-za-ahmad

<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 class="cart-box" id="Normal"> <ul class="nav navbar-nav"> <li class="dropdown"> <button href="#" class="draggable dropdown-toggle btn btn-primary btn-circle btn-xl" data-toggle="dropdown" role="button" aria-expanded="false"> <span class="glyphicon glyphicon-shopping-cart"></span></button> <span class="cart-items-count"><span class=" notification-counter">243</span></span> </li> </ul> </div>
.cart-box{ position: fixed; bottom: 40px; right: 30px; width: 48px; height: 48px; z-index: 2147483000; cursor: pointer; background-position: 50%; } .btn-circle { width: 30px; height: 30px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.428571429; border-radius: 15px; } .btn-circle.btn-lg { width: 50px; height: 50px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 25px; } .btn-circle.btn-xl { width: 70px; height: 70px; padding: 10px 16px; font-size: 24px; line-height: 1.33; border-radius: 35px; } .cart-items-count{ position:relative; display:flex; text-align:center; justify-content: center; top:-55px; } .notification-counter { position: absolute; left: 8px; background-color: rgba(212, 19, 13, 1); color: #fff; border-radius: 3px; padding: 1px 3px; font: 8px Verdana; }

Related: See More


Questions / Comments: