I am facing an issue with highlighting a specific row in a table on a page created by an MVC 3 web application. The problem is that when I set the background-color for the tr tag, it only surrounds the text and not the whitespace between the cells. How can I ensure that the background-color covers the whitespace between the cells, especially since there are no borders for the cells? Below is some code where @schedule.classString resolves to ActiveSet for the desired entry to be highlighted.
<style>
.ActiveSet
{
background-color:#b4c2e3;
}
</style>
@foreach (var schedule in device.Schedules)
{
<tr class="@schedule.classString">