I leave this in the default css file for the site
.hover a
{
background-color:Gray;
text-decoration:none;
}
.hover a:hover
{
background-color:Red;
color:White;
}
and in _LogonPartial.cshtml
@if(Request.IsAuthenticated) {
<text>Welcome <strong>@User.Identity.Name</strong>!
[ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}
else {
@Html.ActionLink("Log On", "LogOn", "Account", new { @class="hover"})
}
Only the class hover->a is effective, it is also strange to me as to why the URL when my mouse is over the Log On link adds "?length=7", what is that ?