Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Bootstrap Elegant Table Design</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> <style> body { color: #566787; background: #f5f5f5; font-family: 'Roboto', sans-serif; } .table-responsive { margin: 30px 0; } .table-wrapper { min-width: 1000px; background: #fff; padding: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.05); } .table-title { font-size: 15px; padding-bottom: 10px; margin: 0 0 10px; min-height: 45px; } .table-title h2 { margin: 5px 0 0; font-size: 24px; } .table-title select { border-color: #ddd; border-width: 0 0 1px 0; padding: 3px 10px 3px 5px; margin: 0 5px; } .table-title .show-entries { margin-top: 7px; } .search-box { position: relative; float: right; } .search-box .input-group { min-width: 200px; position: absolute; right: 0; } .search-box .input-group-addon, .search-box input { border-color: #ddd; border-radius: 0; } .search-box .input-group-addon { border: none; border: none; background: transparent; position: absolute; z-index: 9; } .search-box input { height: 34px; padding-left: 28px; box-shadow: none !important; border-width: 0 0 1px 0; } .search-box input:focus { border-color: #3FBAE4; } .search-box i { color: #a0a5b1; font-size: 19px; position: relative; top: 8px; } table.table tr th, table.table tr td { border-color: #e9e9e9; } table.table th i { font-size: 13px; margin: 0 5px; cursor: pointer; } table.table td:last-child { width: 130px; } table.table td a { color: #a0a5b1; display: inline-block; margin: 0 5px; } table.table td a.view { color: #03A9F4; } table.table td a.edit { color: #FFC107; } table.table td a.delete { color: #E34724; } table.table td i { font-size: 19px; } .pagination { float: right; margin: 0 0 5px; } .pagination li a { border: none; font-size: 13px; min-width: 30px; min-height: 30px; padding: 0 10px; color: #999; margin: 0 2px; line-height: 30px; border-radius: 30px !important; text-align: center; } .pagination li a:hover { color: #666; } .pagination li.active a { background: #03A9F4; } .pagination li.active a:hover { background: #0397d6; } .pagination li.disabled i { color: #ccc; } .pagination li i { font-size: 16px; padding-top: 6px } .hint-text { float: left; margin-top: 10px; font-size: 13px; } </style> <script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); // Animate select box length var searchInput = $(".search-box input"); var inputGroup = $(".search-box .input-group"); var boxWidth = inputGroup.width(); searchInput.focus(function(){ inputGroup.animate({ width: "300" }); }).blur(function(){ inputGroup.animate({ width: boxWidth }); }); }); </script> </head> <body> <div class="container-xl"> <div class="table-responsive"> <div class="table-wrapper"> <div class="table-title"> <div class="row"> <div class="col-sm-4"> <div class="show-entries"> <span>Show</span> <select> <option>5</option> <option>10</option> <option>15</option> <option>20</option> </select> <span>entries</span> </div> </div> <div class="col-sm-4"> <h2 class="text-center">Customer <b>Details</b></h2> </div> <div class="col-sm-4"> <div class="search-box"> <div class="input-group"> <span class="input-group-addon"><i class="material-icons"></i></span> <input type="text" class="form-control" placeholder="Search…"> </div> </div> </div> </div> </div> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Name <i class="fa fa-sort"></i></th> <th>Address</th> <th>City <i class="fa fa-sort"></i></th> <th>Pin Code</th> <th>Country <i class="fa fa-sort"></i></th> <th>Actions</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Thomas Hardy</td> <td>89 Chiaroscuro Rd.</td> <td>Portland</td> <td>97219</td> <td>USA</td> <td> <a href="#" class="view" title="View" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons"></i></a> </td> </tr> <tr> <td>2</td> <td>Maria Anders</td> <td>Obere Str. 57</td> <td>Berlin</td> <td>12209</td> <td>Germany</td> <td> <a href="#" class="view" title="View" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons"></i></a> </td> </tr> <tr> <td>3</td> <td>Fran Wilson</td> <td>C/ Araquil, 67</td> <td>Madrid</td> <td>28023</td> <td>Spain</td> <td> <a href="#" class="view" title="View" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons"></i></a> </td> </tr> <tr> <td>4</td> <td>Dominique Perrier</td> <td>25, rue Lauriston</td> <td>Paris</td> <td>75016</td> <td>France</td> <td> <a href="#" class="view" title="View" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons"></i></a> </td> </tr> <tr> <td>5</td> <td>Martin Blank</td> <td>Via Monte Bianco 34</td> <td>Turin</td> <td>10100</td> <td>Italy</td> <td> <a href="#" class="view" title="View" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons"></i></a> <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons"></i></a> </td> </tr> </tbody> </table> <div class="clearfix"> <div class="hint-text">Showing <b>5</b> out of <b>25</b> entries</div> <ul class="pagination"> <li class="page-item disabled"><a href="#">Previous</a></li> <li class="page-item"><a href="#" class="page-link">1</a></li> <li class="page-item"><a href="#" class="page-link">2</a></li> <li class="page-item active"><a href="#" class="page-link">3</a></li> <li class="page-item"><a href="#" class="page-link">4</a></li> <li class="page-item"><a href="#" class="page-link">5</a></li> <li class="page-item"><a href="#" class="page-link">Next</a></li> </ul> </div> </div> </div> </div> </body> </html>