I have this list below, which I am generating on the fly using Razor view:
<table id="contractCoverablesGrid">
<tbody>
@foreach (var coverableItem in Model.ContractCoverablesList)
{
<tr>
<td>
@Html.Hidden("coverID",coverableItem.CoverID)
</td>
<td>
@Html.Label(coverableItem.Name)
</td>
<td>
<input type='checkbox' class='chkboxActive' checked='checked' />
</td>
</tr>
}
</tbody>
</table>
As you can imagine the outcome of this is a vertical list, which keeps extending downwards.
I would like to have this list 'wrapped' into three adjacent columns instead of one single long column; just as you would do this in ASP.net Datalist server control (in Webforms).
My initial thoughts were to limit the width & height of the table to set values and then keep floating the td(s) left. But how do I float a td. I cannot turn this into div.
Any thoughts?
Please let me know.