Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding captions to the slides


Captions can be easily added to each slide item by inserting a div element with the .carousel-caption class. This element will hold two different elements: a heading and paragraph element. You have the liberty to use either one of them or both. Take the following code as an example:

<div class="item">
  <img src="images/book1.jpg" alt="Book 1">
    <div class="carousel-caption">
    <h3>This is the first slideshow</h3>
    <p>Lorem ipsum donor.</p>
  </div>
</div>