Uxellodunon
Uxellodunon

Reputation: 1

How can I align my textboxes perfectly?

https://i.sstatic.net/eujeL.jpg

As you can see here, my textboxes doesn't seem to be aligned perfectly after each other.

<body style="background-color:#004590;">
</body>
<p>
    <asp:Label ID="Label1" runat="server" ForeColor="#3366FF" Text="*Welcome to the Library Management System*"></asp:Label>
<p>
    <asp:Label ID="Label2" runat="server" BackColor="#66CCFF" BorderColor="Black" BorderStyle="Groove" Text="Sign Up Page:" Width="135p&nbsp;<p>
    &nbsp;<p>
    I am a:<p>
    <asp:ListBox ID="ListBox1" runat="server" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged1" Rows="3"></asp:ListBox>
<p>
    Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

 Please enter a Username.

ID:                                ID should be between 11111-99999.

E-Mail:                          Please enter a valid E-Mail address.

Password:                    Please choose a password.

Confirm Password:       Password does not match.

 

 

 

 

Upvotes: 0

Views: 97

Answers (2)

PJS
PJS

Reputation: 82

You can check your textboxes X and Y positions, depend on your vertical requirement you can set it up. It should work. Hope this helps.

Upvotes: 0

Difficult to say just looking at the picture, try posting some of your code. If you're using labels before textboxes, try setting a fixed width for labels.

Upvotes: 0

Related Questions