Is it possible to remove the space between a button and a textbox in ASP.NET so that they appear next to each other without any gap? If so, how can this be achieved?
Here is my CSS code snippet:
.input, .button {
margin:-10px 0px 0px 0px;
}
This is my ASP.NET code snippet:
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" CssClass="button" runat="server" Text="Button" />
<asp:TextBox ID="TextBox1" CssClass="input" runat="server"></asp:TextBox>
</div>
</form>
However, when I viewed the page in IE 8 Browser, there was no change. I am unsure why this is happening. Any suggestions or solutions would be appreciated.