"Striped table 3.0"
Bootstrap 3.0.0 Snippet by MTaqi

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.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 ----------> <div class="container"> <div class="row col-md-6 col-md-offset-2 custyle"> <table class="table table-striped custab"> <thead> <a href="#" class="btn btn-primary btn-xs pull-right"><b>+</b> Add new categories</a> <tr> <th>ID</th> <th>Title</th> <th>Parent ID</th> <th class="text-center">Action</th> </tr> </thead> <tr> <td>1</td> <td>News</td> <td>News Cate</td> <td class="text-center"><a class='btn btn-info btn-xs' href="#"><span class="glyphicon glyphicon-edit"></span> Edit</a> <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Del</a></td> </tr> <tr> <td>2</td> <td>Products</td> <td>Main Products</td> <td class="text-center"><a class='btn btn-info btn-xs' href="#"><span class="glyphicon glyphicon-edit"></span> Edit</a> <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Del</a></td> </tr> <tr> <td>3</td> <td>Blogs</td> <td>Parent Blogs</td> <td class="text-center"><a class='btn btn-info btn-xs' href="#"><span class="glyphicon glyphicon-edit"></span> Edit</a> <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Del</a></td> </tr> </table> </div> </div>
.custab{ border: 1px solid #ccc; padding: 5px; margin: 5% 0; box-shadow: 3px 3px 2px #ccc; transition: 0.5s; } .custab:hover{ box-shadow: 3px 3px 0px transparent; transition: 0.5s; } /*! // CSS only Responsive Tables // http://dbushell.com/2016/03/04/css-only-responsive-tables/ // by David Bushell */ .rtable { /*! // IE needs inline-block to position scrolling shadows otherwise use: // display: block; // max-width: min-content; */ display: inline-block; vertical-align: top; max-width: 100%; overflow-x: auto; white-space: nowrap; border-collapse: collapse; border-spacing: 0; } .rtable, .rtable--flip tbody { -webkit-overflow-scrolling: touch; background: -webkit-radial-gradient(left ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, -webkit-radial-gradient(right ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 100% center; background: radial-gradient(ellipse at left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, radial-gradient(ellipse at right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 100% center; background-size: 10px 100%, 10px 100%; background-attachment: scroll, scroll; background-repeat: no-repeat; } .rtable td:first-child, .rtable--flip tbody tr:first-child { background-image: -webkit-linear-gradient(left, white 50%, rgba(255, 255, 255, 0) 100%); background-image: linear-gradient(to right, white 50%, rgba(255, 255, 255, 0) 100%); background-repeat: no-repeat; background-size: 20px 100%; } .rtable td:last-child, .rtable--flip tbody tr:last-child { background-image: -webkit-linear-gradient(right, white 50%, rgba(255, 255, 255, 0) 100%); background-image: linear-gradient(to left, white 50%, rgba(255, 255, 255, 0) 100%); background-repeat: no-repeat; background-position: 100% 0; background-size: 20px 100%; } .rtable th { font-size: 11px; text-align: left; text-transform: uppercase; background: #f2f0e6; } .rtable th, .rtable td { padding: 6px 12px; border: 1px solid #d9d7ce; } .rtable--flip { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; overflow: hidden; background: none; } .rtable--flip thead { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; } .rtable--flip tbody { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; position: relative; overflow-x: auto; overflow-y: hidden; } .rtable--flip tr { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; } .rtable--flip td, .rtable--flip th { display: block; } .rtable--flip td { background-image: none !important; border-left: 0; } .rtable--flip th:not(:last-child), .rtable--flip td:not(:last-child) { border-bottom: 0; } /*! // CodePen house keeping */ body { margin: 0; padding: 25px; color: #494b4d; font-size: 14px; line-height: 20px; } h1, h2, h3 { margin: 0 0 10px 0; color: #1d97bf; } h1 { font-size: 25px; line-height: 30px; } h2 { font-size: 20px; line-height: 25px; } h3 { font-size: 16px; line-height: 20px; } table { margin-bottom: 30px; } a { color: #ff6680; } code { background: #fffbcc; font-size: 12px; }

Related: See More


Questions / Comments: