Alvin Alvin - 9 months ago 76
ASP.NET (C#) Question

Textbox width not adjusting in bootstrap

I am currently trying to change the width of the textbox using grid columns. However, I tried to change the size of the column by decreasing or increasing but it doesn't change. May I know why?

I am currently doing it in C# and here's my sample code that I've tried

aspx file

<div class="row">
<div class="form-group col-lg-11">
<asp:label id="Label1" runat="server" cssclass="col-lg-2 control-label input-lg" text="User ID: "></asp:label>
<div class="col-lg-10">
<asp:textbox id="TextBox1" maxlength="20" cssclass="form-control input-lg" runat="server"></asp:textbox>

Answer Source

My error was in my MasterPage. I used form-inline instead of form-horizontal. Changing it solved the problem. Thanks @Zack