To achieve the desired separation inside your table head, you basically need to create a new table inside the head and split it.
Your <th>
will look like this:
<th colspan="3" class="custom-header">
<table class="table table-responsive">
<thead>
<tr>
<th colspan="3" class="last">Tp</th>
</tr>
<tr>
<th>Tp1</th>
<th>Tp2</th>
<th class="last">Tp3</th>
</tr>
</thead>
</table>
</th>
Then you need to play around with CSS until the result looks right, you want to change the margin, padding, border and width. Here is the codepen with the proposed solution.
source
share