Similar questions have been asked in the past, but I still haven't found a solution to my specific inquiry. Here it is:
I have a table
that needs to be sortable using a JavaScript plugin like ListJS. The key requirement is that I must have only one <tr>
element per listing.
This is an example of how my table is structured:
<table>
<tr>
<td class="line1">line 1</td>
<td class="line1">line 1</td>
<td class="line1">line 1</td>
<td class="line1">line 1</td>
<td class="line2">line 2</td>
<td class="line3">line 3</td>
</tr>
</table>
You can view the structure here: http://jsfiddle.net/t6zadmhd/
Specifically, I need the content of <td class="line2">
and <td class="line3">
to appear below the "first line" of cells in a separate row-like format.
I've experimented with applying display:block;
and display:table-row;
to .line2
and .line3
, but the desired layout remains elusive.
Is there a way to achieve this effect?
UPDATE: This is how I envision the final design output: http://jsfiddle.net/op5cb4qt/