" Table Demo "
Bootstrap 4.0.0 Snippet by Rachchh

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html> <head> <title> Table </title> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> </head> <body> <h2 style="color: #448aff;text-align: center;"> Product Table </h2> <hr> <table class="table table-striped"> <div class="dropdown"> <button class="btn btn-default dropdown-toggle pull-right" type="button" data-toggle="dropdown"> <span class="glyphicon glyphicon-check"></span> &nbspMark/ UnMark All <span class="caret"></span></button> <ul class="dropdown-menu dropdown-menu-right" style="margin-top: 17px"> <li><a href="#">Mark All</a></li> <li><a href="#">Unmark All</a></li> </ul> <a class="btn-top" style="margin-right: 15px;" href="#" class="btn btn-primary btn-success pull-right"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit All</a> <a class="btn-top" style="margin-right: 15px;" href="#" class="btn btn-primary btn-success pull-right"> <span class="glyphicon glyphicon-plus"></span> &nbsp Create Table</a> </div> </div> <thead> <tr class="row-name"> <th>No</th> <th>Id</th> <th>Name</th> <th>Age</th> <th>Test</th> <th>Serum</th> <th>Edta</th> <th>Urine</th> <th>Amount</th> </tr> </thead> <tbody> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-default"> New </span></td> <td>FA101</td> <td>Akshay</td> <td>Alumin foil</td> <td>Super... <i class="fa fa-thumbs-up" aria-hidden="true"></i></td> <td>3600/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-info"> Old </span></td> <td>FA102</td> <td>Yusuf</td> <td> Carbon Paper</td> <td>Wow wonderful</td> <td>1000/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-info"> Old </span></td> <td>FA103</td> <td>Ajay</td> <td>Rubber</td> <td>I like It</td> <td>5000/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-default"> New </span></td> <td>FA104</td> <td>Kajol</td> <td>Pencil</td> <td>I love this...<i class="fa fa-heart" aria-hidden="true"></i></td> <td>600/-</td> <td>600/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-info"> Old </span></td> <td>FA105</td> <td>Amitabh</td> <td> Scale</td> <td>Wonderful Idea</td> <td>10,000/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> <tr class="row-content"> <td class="check" "> <label><input type="checkbox" value=""></label></td> <td> <span class="label label-default"> New </span></td> <td>FA106</td> <td>Twinkle</td> <td>Pen</td> <td>Very Happy.. <i class="fa fa-smile-o" aria-hidden="true"></i></td> <td>780/-</td> <td> <a class="btn btn-danger edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-trash" aria-hidden="true"></i> </a> &nbsp <a class="btn btn-info edit" href="path/to/settings" aria-label="Settings"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> </td> </tr> </tbody> </table> </body> </html>
/* Table css Start */ a.del { background:#d9534f; border-radius: 2px; width: 35px; height:28px; padding-left:12px; line-height:10px; } a.edit { padding-left:10px; background:#337ab7; color:#fff; border-radius:2px; border:none; } tr.row-name { font-size: 18px; color:#448aff; } tr.row-content { color:#6c7173; } table { border-bottom: 8px solid #448aff; } td.check { text-align: center; } .table-striped>tbody>tr:nth-of-type(odd) { background:#F0F2F2 !important; } a.btn-danger:hover { background: #de6c69; } a.btn-danger { background:#d9534f; } a.btn-top { background:#448aff; color:#fff; border:1px solid #448aff; padding: 7px 10px; border-radius:4px; } a.btn-top:hover { text-decoration: none; box-shadow:3px 3px 5px #222; transition:box-shadow 0.5s; } /* Table css End */

Related: See More


Questions / Comments: