I would like to make the textbox in MVC 3 display like a label. The code i have still shows the border.
<p>@Html.TextBoxFor(m => m.PostcardsperWeek, new Dictionary<string, object>() {
{ "id", "txtPostcardPerWeek" },
{ "readonly", "true" },
{"class", "TextBoxAsLabel"} })
</p>
css:
.TextBoxAsLabel
{
border: none;
background-color: #fff;
background: transparent;
}
Make the border the same color as your background.
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