Buttons not horizontally aligned with input box

3 posts, 0 answers
  1. Robert
    Robert avatar
    58 posts
    Member since:
    Dec 2008

    Posted 23 Apr 2009 Link to this post

    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. Robert
    Robert avatar
    58 posts
    Member since:
    Dec 2008

    Posted 23 Apr 2009 Link to this post

    Hello,

    I just realized I wrote horizontally in the title, it should read "Buttons not vertically aligned..."
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin
    Admin
    Martin avatar
    585 posts

    Posted 24 Apr 2009 Link to this post

    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.
Back to Top