"Bootsrtap 4 - Responsive Product Category Cards "
Bootstrap 4.1.1 Snippet by demonguru18

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h3>Respondive Product Category Cards - Bootsrtap 4 - By <a href="">Techhowdy</a> (demonguru18) Lyoid Lopes</h3> </div> <!-- Inventory - START --> <div class="row heading"> <h2 class="sub-heading">Inventory</h2> </div> <div class="container-fluid" id="inventory"> <div class="row"> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201708/1821/3132/6f5c6e85-61ac-41bf-abc9-03cff546f5dd.jpg?w=400" alt="Card image cap"> <button class="btn view-btn">SEDAN</button> <div class="ribbon"><span>Popular</span></div> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201802/0121/3143/21d0f107-e2f7-4fa8-b810-9ff140630f24.jpg?w=400" alt="Card image cap"> <button class="btn view-btn">SUV</button> <div class="ribbon"><span>Popular</span></div> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201801/1021/3340/a76ba07f-1528-4071-a048-a0b5878c14e3.jpg?w=400" alt="Card image cap"> <button class="btn view-btn">TRUCK</button> <div class="ribbon"><span>Popular</span></div> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201611/1621/3305/850131da-6165-4cd5-9acc-7fcad9667f6a.jpg?w=400" alt="Card image cap"> <button class="btn btn-danger view-btn">HATCHBACK</button> <div class="ribbon"> <span>Popular</span> </div> </div> </div> </div> <div class="row mt-5"> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201712/2921/3124/0216f098-8842-48dc-ae3d-5eb316f0b135.jpg?w=400" alt="Card image cap"> <button class="btn view-btn">WAGON</button> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201807/0421/3454/b95885c9-17d2-4d72-b8e9-b35636874b2b.jpg?w=400" alt="Card image cap"> <button class="btn btn-danger view-btn">COUPE</button> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201711/2121/3221/bd2b1067-0cf0-4f99-9b38-7ddabe7378de.jpg?w=400" alt="Card image cap"> <button class="btn btn-danger view-btn">CONVERTIBLE</button> </div> </div> <div class="col-md-3"> <div class="card"> <img class="img-fluid" src="http://az413908.vo.msecnd.net/99/photos/201809/2121/3627/2e41e90c-377b-430e-92ed-5db9b1331f19.jpg?w=400" alt="Card image cap"> <button class="btn view-btn">MINIVAN</button> </div> </div> </div> </div> <!-- Inventory - END --> </div>
.ribbon { position: absolute; right: -5px; top: -5px; z-index: 1; overflow: hidden; width: 75px; height: 75px; text-align: center; } .ribbon span { font-size: 10px; color: #fff; text-transform: uppercase; text-align: center; font-weight: bold; line-height: 20px; transform: rotate(45deg); width: 100px; display: block; background: #F62459; background: linear-gradient(#ff89b1 0%, #ff006e 100%); box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1); position: absolute; top: 19px; right: -21px; } .ribbon span::before { content: ''; position: absolute; left: 0%; top: 100%; z-index: -1; border-left: 3px solid #F62459; border-right: 3px solid transparent; border-bottom: 3px solid transparent; border-top: 3px solid #F62459; } .ribbon span::after { content: ''; position: absolute; right: 0%; top: 100%; z-index: -1; border-right: 3px solid #F62459; border-left: 3px solid transparent; border-bottom: 3px solid transparent; border-top: 3px solid #F62459; } #inventory .card:hover { transition: all 0.3s ease; box-shadow: 12px 15px 20px 0px rgba(46,61,73,0.15); } #inventory .view-btn { background-color: #e6de08; margin: -25px 0 0 0; border-radius: 0 0 0 0; font-size: 14px; border: #e6de08; color: #000; } #inventory .btn:hover { background-color: #ff4444; color: #fff; border: 2px solid #ff4444; transition: all 0.3s ease; box-shadow: 12px 15px 20px 0px rgba(46,61,73,0.15); }

Related: See More


Questions / Comments: