In my solution, I have two distinct MVC projects - one is a Web API project and the other is designed to consume that API. Both projects contain a Content folder with a Site.css file. In the Web API consuming project, I am displaying fetched details in HTML table format resembling a grid. Individual record details are shown on a separate view upon clicking a record row. Prior to clicking on the row, I aim to alter the color or style of the HTML table row (tr) on mouse hover within this consuming project. I have included the following CSS in the Site.css file of the Web consuming project:
tbody tr:hover {
cursor:pointer;
background-color:grey;
color:blue;
}
I have also referenced the same in the head section of the Layout view as shown below:
<head>
@System.Web.Optimization.Styles.Render("~/Content/css")
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
@System.Web.Optimization.Scripts.Render("~/bundles/modernizr")
</head>
Unfortunately, this setup is not currently functioning. Can someone offer assistance?