I am currently working on a responsive table with unique content in each row and a concertina feature for expanding rows.
When the concertina is activated, it adds another row to the table below the current row, using a td element with a colspan attribute to span the entire width of the table.
Within this expanded section, I have an inner table that needs its cells to align perfectly with the parent table. Is there a way to achieve this without solely relying on HTML/CSS?
If not, what alternatives or solutions should I consider?
Unfortunately, I am unable to share the full code here but included is a reference screenshot to clarify my setup
<table class="parent-table">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
<td>Cell 6</td>
</tr>
<tr>
<td colspan="6" class="concertina">
<div>
<table>
<tr>
<td>Other 1</td>
<td>Other 2</td>
<td>Other 3</td>
<td>Other 4</td>
<td>Other 5</td>
<td>Other 6</td>
</tr>
</table>
</div>
</td>
</tr>