I have a nested bootstrap table and I want colspan to work on it, but it does not seem to work.
At the end of the day, I would like to end up with something like this:
____________________
| Col1 | Col2 |
|--------------------|
|This is data I want |
|--------------------|
| Col 1 | Col 2 |
----------------------
I created this fiddle to demonstrate the full functionality.
I have fixed your fiddle
<tr class="child">
<td colspan="7">
<table>
<tr>
<td colspan="7">Expand This To Full Table</td>
</tr>
</table>
</td>
</tr>
As G-Man mentioned, you need to have the outermost td to do the colspan. The inner table actually does not need any colspan as follows. Although, I don't think it would be a good idea to nest table within a table, but it's really up to you depending on the situation. Fiddle Updated
<td colspan="7">Some Content Here</td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With