Header misalignment in Microsoft Edge
Datatables column misalign in Microsoft Edge
by fulmar
HTML
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<table id="test" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Surname</th>
<th>DOB</th>
<th>Request Date</th>
<th>Start Date</th>
<th>Usage</th>
<th># filed request</th>
<th>Status Group</th>
<th>Other comments</th>
</tr>
</thead>
<tbody>
<tr>
<td>Robert</td>
<td>Robertson</td>
<td>20-Dec-1967</td>
<td>12-Jan-2017</td>
<td>30-Jan-2017</td>
<td>Not applicable</td>
<td>12</td>
<td>Admin</td>
<td>Testing column alignment in Microsoft Edge</td>
</tr>
</tbody>
</table>
CSS
@import 'https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css';
.dataTable td,
.dataTable th {
border-left: 1px solid #000;
}
JavaScript
var table = $("#test").DataTable({
scrollX: true,
scrollY: '200px',
scrollCollapse: true,
paging: false
});