uthumvc
uthumvc

Reputation: 155

Html.ActionLink() having the hyperlink underline when mouse over or clicked

Please how can i make use of the html.actionlink() without having the String LinkText Underlined.

Below is the HTML

<div class="w3-bar-item w3-button w3-hover-opacity">
        <i class="fa fa-home w3-xlarge">
            @Html.ActionLink("Home", "Index", "Home", new { area = "" }, new { onclick="showSpinner()"})
        </i>
    </div>

Upvotes: 0

Views: 368

Answers (1)

Abdul Haseeb
Abdul Haseeb

Reputation: 582

By using style overloaded version of Html.ActionLink

@Html.ActionLink("Link text", "Action name", "Controller name", new { area = "" }, new { Style = "text-decoration:none;"})

Upvotes: 1

Related Questions