"fixed left columns"
Bootstrap 3.3.0 Snippet by littlehug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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="//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="#">Home</a></li>
<li> <a href="#">Forms</a></li>
<li class="active">Edit</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-9">
<div class="scrolling outer">
<div class="inner">
<table class="table table-striped table-hover table-condensed">
<tr>
<th>Date:</th>
<td>test:</td>
<td>Content One</td>
<td>Longer Content Two</td>
<td>Third Content Contains More</td>
<td>Short Four</td>
<td>Standard Five</td>
<td>Who's Counting</td>
</tr>
<tr>
<th><input type="text" class="form-control" value="03-03-2008"></th>
<td><input type="text" class="form-control" value="22"></td>
<td><input type="text" class="form-control" value="22"></td>
<td><input type="text" class="form-control" value="22"></td>
<td><input type="text" class="form-control" value="22"></td>
<td><input type="text" class="form-control" value="22"></td>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.scrolling table {
table-layout: inherit;
*margin-left: -100px;/*ie7*/
}
.scrolling td, th {
vertical-align: top;
padding: 10px;
min-width: 100px;
}
.scrolling th {
position: absolute;
*position: relative; /*ie7*/
left: 0;
width: 120px;
}
.outer {
position: relative
}
.inner {
overflow-x: auto;
overflow-y: visible;
margin-left: 120px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: