Marek Marek - 1 month ago 10
CSS Question

How can I change size of textBox in MVC?

Change of size doesn't work :(

@Html.TextBox("Imie", new { @class = "boxx" })


Css:

.boxx{
height : 400px;
width : 500px;
}


the class = "boxx" is wrote in textBox

LDJ LDJ
Answer

Have a look at the docs (or intellisense) and you will see the available overloads. Try

@Html.TextBox("Imie", null, new { @class = "boxx" })