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?
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?
@Html.Label("MeuLabel", new { @style = "color: #000000" })
Just fill @style
with the CSS style you want.