I have a table with two scrollable tbody elements on top of each other as follows:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<table class="table table-condensed scrollable">
<thead>
<tr>
<th colspan="4">Application and SecurityEvent Log</th>
</tr>
<tr>
<th class="col-md-1 header-row">Time</th>
<th class="col-md-5 header-row">Source</th>
<th class="col-md-6 header-row">Message</th>
</tr>
</thead>
<tbody id="logEventsApp" class="scrollable">
<tr id="13705" class="warning">
<td>10:23</td>
<td>IIS Express</td>
<td>3</td>
<td>null</td>
</tr>
<tr id="13704" class="warning">
<td>10:20</td>
<td>TestLog</td>
<td>4</td>
<td>null</td>
</tr>
</tbody>
<tbody id="logEventsSec" class="scrollable">
<tr id="2345" class="warning">
<td>10:21</td>
<td>Security error</td>
<td>3</td>
<td>null</td>
</tr>
<tr id="142604" class="warning">
<td>10:20</td>
<td>TestLog</td>
<td>4</td>
<td>null</td>
</tr>
</tbody>
</table>
</body>
</html>
With the following CSS:
.scrollable table {
border-collapse: collapse;
width: 100%;
}
.scrollable thead {
text-align: left;
display: table;
float: left;
width: 100%;
}
.scrollable thead tr {
display: table-row;
width: 100%;
}
.scrollable tbody {
display: block;
height: 200px;
overflow: auto;
float: left;
width: 100%;
}
.scrollable tbody tr {
display: table;
width: 100%;
}
.scrollable tbody tr {
height: 18px;
}
.scrollable tbody td {
padding: 1px 1px;
}
.scrollable th, td {}
I want to make it so that the area that divides the two elements is moveable (e.g., you can decide which one you want to see most by moving it with your mouse).
Is this possible? And if so, how?