.icon-prev - Unicode icon used in carousels. - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:icon-prev

Description

.icon-prev - Unicode icon used in carousels.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <style>
  .carousel-inner > .item > img,
  .carousel-inner > .item > a > img {
      width: 70%;
      margin: auto;
  }<!--  www  . j av a  2 s.c o m-->
  </style>
</head>
<body>

<div class="container">
  <h2>Left and Right Arrows</h2>
  <div id="myCarousel" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
      <li data-target="#myCarousel" data-slide-to="3"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <div class="item active">
        <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="test" width="460" height="345">
      </div>

      <div class="item">
        <img src="https://www.java2s.com/style/demo/Firefox.png" alt="test" width="460" height="345">
      </div>

      <div class="item">
        <img src="https://www.java2s.com/style/demo/Opera.png" alt="Flower" width="460" height="345">
      </div>

      <div class="item">
        <img src="http://java2s.com/resources/e.png" alt="Flower" width="460" height="345">
      </div>
    </div>

    <!-- Left and right controls -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
      <span class="icon-prev" 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="icon-next" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
</div>

</body>
</html>

Related Tutorials