D
D
Den Savi2016-11-02 14:25:39
Bootstrap
Den Savi, 2016-11-02 14:25:39

How to make 3 slides in bootstrap carousel?

How to make it show not one slide, but 3?

<div id="myCarousel" class="carousel slide" data-ride="carousel">

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
          <div class="item active">
            <img src="img/source/img_3898.png" alt="Chania">
          </div>

          <div class="item">
            <img src="img/source/img_3898.png" alt="Chania">
          </div>

          <div class="item">
            <img src="img/source/img_3898.png" alt="Flower">
          </div>

          <div class="item">
            <img src="img/source/img_3898.png" alt="Flower">
          </div>
        </div>

        <!-- Left and right controls -->
        <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
          <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
          <span class="sr-only">Next</span>
        </a>
      </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#rybak, 2016-11-02
@den_savi

I recently solved a similar issue.
I never did it on the bootstrap, but I can recommend a good contraption for such things.
(there are many demo examples, I think you will figure it out)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question