This is a migrated thread and some comments may be shown as answers.

RadTextBox Not Aligning/Extra Top Margin

2 Answers 227 Views
Input
This is a migrated thread and some comments may be shown as answers.
m
Top achievements
Rank 1
m asked on 08 Jan 2009, 08:30 PM
For example I have these controls on a page:

    <asp:TextBox runat="Server"></asp:TextBox> <radI:RadTextBox runat="Server"></radI:RadTextBox>
   
The RadTextBox does not appear in vertical alignment after the TextBox. It appears much lower and seems there is some extra padding/margin at the top. Why and how do I get rid of it?
 

2 Answers, 1 is accepted

Sort by
0
m
Top achievements
Rank 1
answered on 09 Jan 2009, 06:59 PM
I'm still looking for an answer to this
0
Dimo
Telerik team
answered on 10 Jan 2009, 04:35 PM
Hi Michael,

As far as I can see, you are using the "classic" RadInput for ASP.NET.

RadTextBox has a vertical-align:middle style applied by default. Set the same for the standard asp:TextBox as well:

<asp:TextBox ID="TextBox1" runat="server" style="vertical-align:middle"  />

Depending on the RadTextBox skin, the two textboxes may have different heights, but the vertical alignment should now be the same.

If you experience some major misalignment, this may be caused by some other styles on the page. In this case, we will need a complete runnable example or a live URL to inspect.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
m
Top achievements
Rank 1
Answers by
m
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or