"Table-Lv2"
Bootstrap 3.3.0 Snippet by muzikiii

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/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 ----------> <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 "> <div class="col-md-12"> <ul class="breadcrumb"> <li><a href="#">Conceptual Data</a></li> <li><a href="#">Data Entity</a></li> <li class="active">Logical Data Components</li> </ul> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"> Data Entity</h3> </div> <div class="panel-body"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-body"> <div class="col-sm-6"> <div class="form-horizontal"> <label class="col-xs-4 control-label">Conceptual Data :</label> <p class="form-control-static">ลูกค้า</p> </div> </div> <div class="col-sm-6"> <div class="form-horizontal"> <label class="col-xs-4 control-label">Description : </label> <p class="form-control-static">...</p> </div> </div> </div> </div> <table class="table table-striped custab"> <thead> <tr> <th>ID</th> <th>Data Entities</th> <th>Description</th> <th class="text-center">Status</th> </tr> </thead> <tr> <td>1</td> <td><a href="#">ผู้มุ่งหวัง</a></td> <td></td> <td class="text-center"><span class="label label-success">Active</span></td> </tr> <tr> <td>2</td> <td><a href="#">ผู้เอาประกัน</a></td> <td></td> <td class="text-center"><span class="label label-success">Active</span></td> </tr> <tr> <td>3</td> <td><a href="#">ผู้รับผลประโยชน์</a></td> <td></td> <td class="text-center"><span class="label label-default">Inactive</span></td> </tr> <tr> <td>4</td> <td><a href="#">ผู้ชำระเบี้ยประกัน</a></td> <td></td> <td class="text-center"><span class="label label-default">Inactive</span></td> </table> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"> Data Entity</h3> </div> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-md-7"> <div class="form-group"> <label class="control-label" for="name">Conceptual Data</label> <input id="name" name="name" type="text" placeholder="ลูกค้า" class="form-control input-md"> </div> </div> <!-- Text input--> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="email">Data Entity</label> <input id="email" name="email" type="text" placeholder="Data Entity" class="form-control input-md"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="date">Description</label> <input id="date" name="date" type="text" placeholder="Description" class="form-control input-md"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="date">Status</label> <div class="radio"> <label class="radio-inline"> <input type="radio" id="status" name="statusradio" value="Female">Active </label> <label class="radio-inline"> <input type="radio" id="status" name="statusradio" value="Male">Inactive </label> </div> </div> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-body"> <div class="form-group"> <label class="col-md-5 control-label" for="button1id"></label> <div class="col-md-6"> <button id="button1id" name="button1id" class="btn btn-primary">Create</button> <button id="button2id" name="button2id" class="btn btn-danger">Cancel</button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </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; } .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: radial-gradient(left, ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, radial-gradient(right, ellipse, 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-gradient(linear, left top, right top, color-stop(50%, white), to(rgba(255, 255, 255, 0))); 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-gradient(linear, right top, left top, color-stop(50%, white), to(rgba(255, 255, 255, 0))); 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: -ms-flexbox; display: flex; overflow: hidden; background: none; } .rtable--flip thead { display: -webkit-box; display: -ms-flexbox; display: flex; -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: -ms-flexbox; display: flex; position: relative; overflow-x: auto; overflow-y: hidden; } .rtable--flip tr { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; min-width: -webkit-min-content; min-width: -moz-min-content; min-width: min-content; -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; }

Related: See More


Questions / Comments: