Marking up the carousel
Let's get started with our carousel, which will rotate between four featured images from our portfolio.
Bootstrap's carousel markup structure can be found in its documentation pages at http://getbootstrap.com/components/carousel/.
Following the pattern used in the example, we'll begin with this structure to set up the fundamental element. This will contain all parts of the carousel, followed by the progress indicators:
<div id="carousel-feature" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carousel-feature" data-slide-to="0" class="active"></li> <li data-target="#carousel-feature" data-slide-to="1"></li> <li data-target="#carousel-feature" data-slide-to="2"></li> </ol> </div>
Note that I've used a div
tag with an ID (id=
"carousel-feature")
to establish the fundamental context of carousel
. The carousel...