Marek Marek - 1 year ago 86
C# Question

@Html adjusting size of icons

How to change size of the box in ASP.NET MVC?


I know how to change in html but this is something new for me

Answer Source

You can use HTML attributes

@Html.TextBox("Name", new { @class = "class-name" })

and in your CSS file

.class-name {
    width: 50px;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download