Using Cards for layout
In my opinion, the best new feature in Bootstrap 4 is the new Card component. If you're unfamiliar with Cards, they were made popular with the release of Google Material Design. They are a mobile first content container that works well for phones, tablets, and the desktop.
We'll be using the Card component heavily in our blog project so let's jump right in and start learning how to use them. Check out the following code to learn how to render a basic card:
<div class="card"> <img class="card-img-top img-fluid" src="path/to/your/image.jpg"> <div class="card-block"> <h4 class="card-title">Card title</h4> <p class="card-text">Some basic description text for your card should appear in this section.</p> <a href="#" class="btn btn-primary">Button</a> ...