I'm using following code to display some text and it won't change the font color, anyone know why?
<%= Html.TextAreaFor(m => m.Component.ApplicationDescription, new { cols = "40%", Style = new Style { ForeColor = Color.Red } })%>
<%= Html.TextAreaFor(m => m.Component.ApplicationDescription,
new { cols = "40%", style = "color:red;" })%>
or apply a css style:
<%= Html.TextAreaFor(m => m.Component.ApplicationDescription,
new { cols = "40%", @class = "foo" })%>
which could look like this:
.foo {
color: red;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With