I have a table in a page generated by an MVC 3 web application. I am attempting to highlight a particular row by setting a background-color for the tr tag. When I do this the background-color only appears around the actual text, and not the whitespace between the cells. How can I make it cover the whitespace between the cells? There are no borders for the cells.
Here is some code, @schedule.classString resolves to ActiveSet for the entry I want highlighted.
<style>
.ActiveSet
{
background-color:#b4c2e3;
}
</style>
@foreach (var schedule in device.Schedules)
{
<tr class="@schedule.classString">
This will delete spaces between cell’s borders, so you wiln’t have this white space as well.