views:

37

answers:

1

Hello all,

I have a <%= Html.TextBoxFor(user => user.Name) %> and it has standart width. What schould i do to make textbox widther?

Thanks and take care, Ragims

+3  A: 

You can do this to add a CSS class called singleTextBox, and then you can assign a width in your style sheet:

<%= Html.TextBoxFor(model => model.UserName, new { @class = "singleTextBox" }) %>

In your style sheet:

.singleTextBox {
    width: 12em;
}
RedFilter