Change font size using @Html.Label

1

How do I assign a font size and colors using @Html.Label ?

I know that if I use htmlAttributes I can use: @class = ... I get via css. But I wish I could do it without using CSS. How?

    
asked by anonymous 15.05.2014 / 22:47

1 answer

2
@Html.Label("MeuLabel", new { @style = "color: #000000" })

Just fill @style with the CSS style you want.

    
15.05.2014 / 23:06