"Product notch badges responsive"
Bootstrap 3.0.3 Snippet by n0xd3v

<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="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-default"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> A default offer </h3> <p> And a little description. <br> and so one </p> </div> </div> </div> <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> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-radius offer-primary"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> A primary-radius </h3> <p> And a little description. <br> and so one </p> </div> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-info"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> An new info offer </h3> <p> And a little description. <br> and so one </p> </div> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-warning"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> A warning offer </h3> <p> And a little description. <br> and so one </p> </div> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="offer offer-radius offer-danger"> <div class="shape"> <div class="shape-text"> top </div> </div> <div class="offer-content"> <h3 class="lead"> A danger-radius </h3> <p> And a little description. <br> and so one </p> </div> </div> </div> </div> </div>
.shape{ border-style: solid; border-width: 0 40px 40px 0; float:right; height: 0px; width: 0px; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } .shape-text{ color:#fff; font-size:12px; font-weight:bold; position:relative; right:-22px; top:-3px; white-space: nowrap; -ms-transform:rotate(30deg); /* IE 9 */ -o-transform: rotate(360deg); /* Opera 10.5 */ -webkit-transform:rotate(46deg); /* Safari and Chrome */ transform:rotate(46deg); } .offer{ background:#fff; border:1px solid #ddd; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); margin: 15px 0; overflow:hidden; } .shape { border-color: rgba(255,255,255,0) #d9534f rgba(255,255,255,0) rgba(255,255,255,0); } .offer-radius{ border-radius:7px; } .offer-danger { border-color: #d9534f; } .offer-danger .shape{ border-color: transparent #d9534f transparent transparent; } .offer-success { border-color: #5cb85c; } .offer-success .shape{ border-color: transparent #5cb85c transparent transparent; } .offer-default { border-color: #999999; } .offer-default .shape{ border-color: transparent #999999 transparent transparent; } .offer-primary { border-color: #428bca; } .offer-primary .shape{ border-color: transparent #428bca transparent transparent; } .offer-info { border-color: #5bc0de; } .offer-info .shape{ border-color: transparent #5bc0de transparent transparent; } .offer-warning { border-color: #f0ad4e; } .offer-warning .shape{ border-color: transparent #f0ad4e transparent transparent; } .offer-content{ padding:0 20px 10px; } @media (min-width: 487px) { .container { max-width: 750px; } .col-sm-6 { width: 50%; } } @media (min-width: 900px) { .container { max-width: 970px; } .col-md-4 { width: 33.33333333333333%; } } @media (min-width: 1200px) { .container { max-width: 1170px; } .col-lg-3 { width: 25%; } } }

Related: See More


Questions / Comments: