0

I have developed a website in asp.net and i have four drop down lists that are connected to an access database. The thing is when I view in firefox or ie there is a default drop down arrow which i don't want, but if I view in chrome it is not there. I have tried adding these to my style class:

 -moz-appearance: none; opacity:0; overflow:hidden; width:120%

as well as

 -moz-appearance: button; overflow:hidden; width:120%; opacity: 0

and I have had no success, and I am well, stuck. any help is greatly appreciated

here is my dropdown list:

<asp:DropDownList id="DropDownList3" 
                        runat="server" 
                        AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" 
                        DataTextField="Plant" 
                        DataValueField="Plant" 
                        min-width="156px"
                        width="120%";
                        Font-Bold="true" 
                        Font-Size="x-Large" 
                        style="margin-left: 250px; margin-top:-44.5px;
                        margin-bottom:-20px; 
                        background-color: #FFFFFF; box-shadow:none; 
                        outline-color: #FFFFFF;
                       -moz-appearance: none;
                        overflow:hidden; appearance: none; 
                       -webkit-appearance:none;
                        border: none;
                       text-align: right;" 
                        Enabled="False">
                </asp:DropDownList>
foobar2023
  • 67
  • 2
  • 11
  • See this question: http://stackoverflow.com/questions/5912791/how-to-remove-the-arrow-from-a-select-tag-in-firefox – eclipsis Jul 29 '13 at 20:07

3 Answers3

1

Simple placing dropdown into a container DIV of a lesser width with overflow:hidden should do the trick, for example:

<div style="width:200px; overflow:hidden" >
    <asp:DropDownList ID="DropDownList1" runat="server" style="width:220px">
    </asp:DropDownList>
</div>    
Yuriy Galanter
  • 38,833
  • 15
  • 69
  • 136
0

Try assiging the CSS display:none; value

style="margin-left: 250px; margin-top:-44.5px;
                        margin-bottom:-20px; 
                        background-color: #FFFFFF; box-shadow:none; 
                        outline-color: #FFFFFF;
                       -moz-appearance: none;
                        overflow:hidden; appearance: none; 
                       -webkit-appearance:none;
                        border: none;
                       text-align: right;
                       display: none;" 
Kevin Lynch
  • 24,427
  • 3
  • 36
  • 37
0

Setting the following should do the job in mozilla.

text-indent:10px;

This property will push the default dropbox button under the select area.

v2b
  • 1,436
  • 9
  • 15