Prev Demo
Bootstrap
>
Sliding Image
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <style> .carousel-inner > .item > img, .carousel-inner > .item > a > img { width: 70%; margin: auto; } </style> </head> <body> <h2>Image sliding</h2> <div class="container"> <br> <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> <div class="carousel-inner"> <div class="item active"> <img src=http://techfunda.com/HTPictures/Generics/4-635947513195832163.png /> </div> <div class="item"> <img src=http://techfunda.com/HTPictures/Generics/4-635947513491466175.png /> </div> <div class="item"> <img src=http://techfunda.com/HTPictures/Generics/4-635947513619122176.jpg /> </div> <div class="item"> <img src=http://techfunda.com/HTPictures/Generics/4-635947513700684720.jpg /> </div> </div> <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></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" ></span> <span class="sr-only">Next</span> </a> </div> </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output