I have a view in asp.net MVC 3 project. So far so good but all the context are packed together.
I just want this table has solid boundrys.
Is there a simple CSS(inline)?
<table>
<thead>
<tr>
<td>ID</td>
<td>PIN</td>
<td>First Name</td>
<td>Middle Name</td>
<td>Last Name</td>
</tr>
</thead>
@foreach (var r in ViewBag.collections)
{
<tr>
<td>@r.IDNumber</td>
<td>@r.PIN</td>
<td>@r.FirstName</td>
<td>@r.MiddleName</td>
<td>@r.LastName</td>
</tr>
}
</table>
Solid boundries where? Around each cell, row, the whole table, all of the above? Not sure exactly what you’re looking for. The others answered about table borders.
If you’re looking for zebra stripping, there are a few ways to do this:
CSS 3
Not supported in IE <= 8
In Code
Then in your view:
With JQuery
Add the above odd/even css classes.