I am dealing with an issue that seems very simple but can't resolve it in any way I can. I have a textbox followed by a comma.
.nospace {
letter-spacing: -1px;
margin: 0;
padding: 0;
margin-left: 0;
margin-right: 0;
word-spacing: 0;
}
<span class="nospace">
<asp:TextBox ID="userInfo1" runat="server" CssClass="extension_textbox2 nospace"/>
<span style="margin: 0;padding: 0;margin-left:0;word-spacing:0">,</span>
</span>
I don't want any space between the textbox and a comma but for some reason the space doesn't go away despite setting the margins and paddings to 0. I did try font-size=0 but that setting removes ability to enter any text into a textbox. Also, I saw some suggestions to use float left, but that setting moves comma or textbox to a beginning of a paragraph. How can I safely remove the space between the comma and a textbox?
Thank you in advance