<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css”> <link rel=”stylesheet” href=”styles.css”> <title>Bootstrap Slider</title> </head> <body> <div id=”bootstrap-slider” class=”carousel slide” data-ride=”carousel”> <div class=”carousel-inner”> <div class=”carousel-item active”> <img src=”image1.jpg” class=”d-block w-100″ alt=”Image 1″> </div> <div class=”carousel-item”> <img src=”image2.jpg” class=”d-block w-100″ alt=”Image 2″> </div> <div class=”carousel-item”> <img src=”image3.jpg” class=”d-block w-100″ alt=”Image 3″> </div> </div> <a class=”carousel-control-prev” href=”#bootstrap-slider” role=”button” data-slide=”prev”> <span class=”carousel-control-prev-icon” aria-hidden=”true”></span> <span class=”sr-only”>Previous</span> </a> <a class=”carousel-control-next” href=”#bootstrap-slider” role=”button” data-slide=”next”> <span class=”carousel-control-next-icon” aria-hidden=”true”></span> <span class=”sr-only”>Next</span> </a> </div> <script src=”https://code.jquery.com/jquery-3.5.1.slim.min.js”></script> <script src=”https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.2/dist/umd/popper.min.js”></script> <script src=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js”></script> </body> </html>
Baca juga tentang SourceCode Pop UP
CSS
body { margin: 0; padding: 0; } #bootstrap-slider { width: 80%; margin: 50px auto; }
2 thoughts on “SourceCode Website Banner”
Pingback: SourceCode Company Button dan POP UP – Ruang Logika
Pingback: SourceCode Company Profile – Ruang Logika