O'Reilly logo

Bootstrap 4 – Responsive Web Design by Jason Marah, Benjamin Jakobus, Matt Lambert, Silvio Moreto

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required