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

Buttons not horizontally aligned with input box

2 Answers 319 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 23 Apr 2009, 09:51 AM
Hello,

I have three elements in a row: a label, an text box and a button.  The label and input box align well vertically but the button is shifted down 2 pixels.  I'm using a custom skin but I'm seeing the same result applying a default skin.  Please see the following image:

http://www.code.sovivid.com/butshiftdown.jpg

Code:
<label>File Name: </label><asp:TextBox ID="TextBox1" runat="server" Text=""></asp:TextBox> <asp:Button ID="browse1" runat="server" Text="Browse..." />

Any thoughts on how to align the button with the input box?

Thanks,
Bob

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 23 Apr 2009, 02:08 PM
Hello,

I just realized I wrote horizontally in the title, it should read "Buttons not vertically aligned..."
0
Martin
Telerik team
answered on 24 Apr 2009, 05:35 AM
Hello Robert,

Please, check if these form controls are aligned with form decorator turned off. If they are not, try adding style="vertical-align: middle" to them. If they still do not align properly, send us your html and custom styles (if such), as the misalignment may be caused by the surrounding html and / or global styles

Regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FormDecorator
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Martin
Telerik team
Share this question
or