Ronald Ronald - 5 months ago 113
CSS Question

ASP.NET MVC Html.ActionLink hyperlink color

How can I change the colors of the hyperlink created by the helper function Html.ActionLink?

[additional detail]
The colors will have to be different for each state of the hyperlink, i.e. active, selected, was already selected, etc.


Typically you would do something like this:

Html.ActionLink("My Link", "MyAction", null, new { @class = "my-class" })

And then use CSS to style my-class: { color: #333333 } { color: #666666 } { color: #999999 } { color: #CCCCCC }