Code Examples for the BootstrapBay 24 Days of Bootstrap series (https://bootstrapbay.com/blog/)
Created
September 27, 2019 05:07
-
-
Save mstr1/05d999a015c9b94557a24f4c6e062a52 to your computer and use it in GitHub Desktop.
Bootstrap 4 Cards with Header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-12 col-sm-6 col-lg-4"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| City Breaks | |
| </div> | |
| <div class="card-body"> | |
| <h4 class="card-title">Bologna</h4> | |
| <h6 class="card-subtitle mb-2">Emilia-Romagna Region, Italy</h6> | |
| <p class="card-text">It is the seventh most populous city in Italy, at the heart of a metropolitan area of about one million people. </p> | |
| <a href="#" class="btn btn-danger">Get Deal</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="col-12 col-sm-6 col-lg-4"> | |
| <div class="card"> | |
| <h5 class="card-header"> | |
| City Breaks | |
| </h5> | |
| <div class="card-body"> | |
| <h4 class="card-title">Oslo</h4> | |
| <h6 class="card-subtitle mb-2">Oslofjord, Norway</h6> | |
| <p class="card-text">Oslo is the economic and governmental centre of Norway. The city is also a hub of Norwegian trade, banking, industry and shipping. </p> | |
| <a href="#" class="card-link text-danger">Read More</a> | |
| <a href="#" class="card-link text-warning">Book a Trip</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/popper.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body{ | |
| padding: 2rem 0rem; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css" rel="stylesheet" /> | |
| <link href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment