Link to home
Create AccountLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net C# web forms Get heights of List box and Text Box to align

Hi

In my ASP.net web forms web app/I have a List Box next to a multiple line Text Box. I want them to be the same height but can't seem to achieve this, even if I change the number of rows in either. The markup is shown next an an image of the page after that. How do I get them to align


                                <div class="form-group  col-md-6">

                                    <asp:Label runat="server" CssClass="control-label">Customer</asp:Label>


                                    &nbsp;&nbsp;<asp:Label runat="server" CssClass="control-label" ID="Label1" Font-Size="XX-Small">(Search)</asp:Label>

                                    &nbsp;

                                    <asp:TextBox ID="txtSearchCustomer" runat="server" Height="18px" Width="223px" AutoPostBack="True" OnTextChanged="txtSearchPartNo_TextChanged" ></asp:TextBox>                                   

                                    <asp:ListBox ID="ListBox_Customer" runat="server" Rows="6" CssClass="form-control select" AutoPostBack="True" OnSelectedIndexChanged="ListBox_PartNo_SelectedIndexChanged" ></asp:ListBox>         

                                </div>


                                 <div class="form-group  col-md-6">

                                    <asp:Label runat="server" class="control-label" ID="Label3" Visible="true">Ship Address</asp:Label>

                                    <asp:TextBox TextMode="MultiLine" Rows="5" CssClass="form-control" runat="server" ID="Ship_Address" Visible="true" ToolTip="Ship Address."></asp:TextBox>  

                                </div>


ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account