Ronald Ronald - 1 year ago 820
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.

Answer Source

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 }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download