"Repeat card box"
Bootstrap 4.1.1 Snippet by voeurnchy

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div id='dvMain'></div> <div id='repeat' class=" row"> <br> <div class="card" style="width: 18rem;"> <img class="card-img-top" src="http://via.placeholder.com/140x100" alt="Card image cap"> <div class="card-body"> <h5 class="card-title">Card title</h5> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> </div> </div>
$(document).ready(function() { for (var i = 0; i < 20; i++) $("#dvMain").append($('#repeat').html()); });

Related: See More


Questions / Comments: