Image elements

As a next step, let us add an image to each column in our grid. Each image will act as a category heading, as well as allow us to display our photographic wares. The images used in the following part, and throughout the rest of the book, are provided with this book. Take a look at the following code:

    <div class="col-xs-6 col-sm-3 push-sm-3">       <img src="images/small.jpg">       <h5>Small</h5>       <div class="row">          <div class="col-sm-4">6x5</div>          <div class="col-sm-4">8x10</div>          <div class="col-sm-4">11x17</div>       </div>    </div>    <div class="col-xs-6 col-sm-3 push-sm-3">       <img src="images/medium.jpg">       <h5>Medium</h5>       <div class="row">          <div class="col-sm-4">12x18</div> ...

Get Mastering Bootstrap 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.