After dragging a dropdown list onto the page, I attempted to add a button next to it. In the design view, the button appears beside the dropdown list as intended. However, when I run the code, there is more than five spaces between them. I even tried putting them into a table with one row and two columns, but the spacing between them is still too much. All I want is for there to be just one space between the dropdown list and the button.
<asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="280px">
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Button" />
What's puzzling is that in the design view of the code editor, everything looks fine:
But once the code is executed and running: