I needed to create my own dropdownlist so that I can create a server control with other properties. For the most part, this is going well but I have come across one problem. For the drop down arrow, I just use a background image in CSS. The problem, though, is that any text that extends past the image will overlay that image. anyone have any ideas on how to either keep the background image on top or hide any text that goes beyond where the image is? Here is my code, so far:
.tbSearchDefault
{
border-top:1px solid #abadb3;
border-right:1px solid #dbdfe6;
border-bottom:1px solid #e3e9ef;
border-left:1px solid #e2e3ea;
background-image:url('images/ddlMouseOut.gif');
background-repeat:no-repeat;
background-position:right;
cursor:default;
}
<table cellpadding="0" cellspacing="0" style="border-collapse: collapse;">
<tr>
<td>
<asp:TextBox ID="tbSearchName" runat="server"
CssClass="tbSearchDefault" >
</asp:TextBox>
</td>
</tr>