how to style ActionLinkButton content [duplicated]

1

Can I make style modifications only to the content of my actionLink ?, in this case to the word Excel ... since when I give a style it modifies all my ActionLink, icon and text. Code

@Html.ActionLink("Excel  ", "ExportarConsultaAlmacen", new { formato = "Excel" }, new { @class = "fa fa-file-excel-o btn btn-default" }) 
    
asked by carmen 28.12.2016 в 18:42
source

1 answer

0

I remember that this is razor, look, it is best that you run the page in the browser, and look at the HTML that generates the ActionLink control (To look at the html use the developer mode by giving it to F12).

As you know, all the .net controls end up being translated into HTML.

Once identified, it's as easy as styling it with CSS.

Greetings.

    
answered by 29.12.2016 в 11:54