ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to adjust the width of the TextBox
Title:
B
I
{code}
?
That not work @Html.Awe().TextBoxFor(o => o.Address).HtmlAttributes(new {width="500px" })
Save Changes
Cancel
RayBen
asked at 29 May 2020
Answers
B
I
{code}
?
you can do it like this: @Html.Awe().TextBoxFor(o => o.Address).HtmlAttributes(new { style="width:500px" }) setting width attribute won't work for `input type="text"` https://www.w3schools.com/tags/tag_input.asp you can also change it globally with css: .awe-txt-field.awe-field { width: 500px; }
Save Changes
Cancel
Omu
answered at 29 May 2020
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK