How to correctly align a Dropdownlist with a TextBox at the same height?

0

I am creating a form in which there is a DropdownList and next to a TextBox. I have the problem that the two elements located at the same height do not place me. the DropDownlist fits me a little lower. Also I have to declare a height="1" so that the text box has the same size as the DropDownList.

I have tried varying the Css of the two elements by adding a vertical-align: middle; but they do not come out aligned between the two vertically.

<asp:DropDownList ID="ddlDato1" runat="server" Width="50" CssClass="ddlDrop"></asp:DropDownList>
<asp:TextBox ID="txtDato2" runat="server" Width="50" Height="1" CssClass="txtTB"></asp:TextBox>
    
asked by Popularfan 02.08.2018 в 11:31
source

0 answers