"Product badges responsive"
Bootstrap 3.0.3 Snippet by hashif

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/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="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-success"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> A success offer </h3> <p> And a little description. <br> and so one </p> </div> </div> </div>
.shape{ border-style: solid; border-width: 0 70px 40px 0; float:right; height: 0px; width: 0px; -ms-transform:rotate(0deg); /* IE 9 */ -o-transform: rotate(0deg); /* Opera 10.5 */ -webkit-transform:rotate(0deg); /* Safari and Chrome */ transform:rotate(0deg); } .offer-success { border-color: #5cb85c; } .offer-success .shape{ border-color: transparent #5cb85c transparent transparent; } .shape-text{ color:#fff; font-size:12px; font-weight:bold; position:relative; right:-40px; top:2px; white-space: nowrap; -ms-transform:rotate(30deg); /* IE 9 */ -o-transform: rotate(360deg); /* Opera 10.5 */ -webkit-transform:rotate(30deg); /* Safari and Chrome */ transform:rotate(30deg); } .offer-content{ padding:0 20px 10px; }

Related: See More


Questions / Comments: