Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Untitled"
Bootstrap 4.1.1 Snippet by
divyalahad
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
898
 
0 Fav
Post to Facebook
Tweet this
<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 ----------> <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>Best Car Rental Company - <a href="www.indior.tours">Indior Tours</a> </h3> </div> <!-- Inventory - START --> <div class="row heading"> <h2 class="sub-heading">Fleet</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://indiarentacar.com/wp-content/uploads/2016/06/audi-a8-l.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://indiarentacar.com/wp-content/uploads/2016/09/jaguar-xf.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://indiarentacar.com/wp-content/uploads/2016/06/mercedies-benz-s-350.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://indiarentacar.com/wp-content/uploads/2016/06/mercedies-benz-s-350.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://indiarentacar.com/wp-content/uploads/2016/06/audi-a-6.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://indiarentacar.com/wp-content/uploads/2016/06/toyota-camry.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://indiarentacar.com/wp-content/uploads/2016/06/honda-accord.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://indiarentacar.com/wp-content/uploads/2016/06/nissan-sunny-1.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: #203989; margin: -25px 0 0 0; border-radius: 0 0 0 0; font-size: 14px; border: #203989; color: #fc6600; } #inventory .btn:hover { background-color: #fc6600; color: #fff; border: 2px solid #fc6600; transition: all 0.3s ease; box-shadow: 12px 15px 20px 0px rgba(46,61,73,0.15); }
Related:
See More
Template
Paper Dashboard 2 PRO
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76