set the position of the textbox

754 views Asked by At

I have 3 textbox as below

<asp:TextBox ID="txtID" CssClass="textbox" runat="server" ></asp:TextBox>

        <asp:TextBox ID="txtName" CssClass="textbox" runat="server" ></asp:TextBox>

        <asp:TextBox ID="txtPosition" CssClass="textbox" runat="server" ></asp:TextBox>

when I zoom in in browser, the textbox on the right will change its position to bottom of the left textbox. can I fix it 3 of them stay to each other and wont change the position when I zoom in in browser.

1

There are 1 answers

2
nilsree On

Set the width of the textboxes to 33% with styling.

.textbox {
 width: 33%;
}

If you have no spacing or margin between the textboxes, this should work.