Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I was hoping if anyone could help me with this strange issue that I am facing with dropdownlist rendering.

This is how it looks when the page is loaded.

But when I click/select it looks as I want it to look on load

This is how it looks on click/select


But this works fine on other browsers. The issues is only with IE 8/9 (havnt tried lower versions of IE)

Thanks and best wishes!

[Edit - adding OPs code]
CSS
input[type=text], input[type=password], input.text, input.title, textarea, select
{
    font-family: Arial, Helvetica, sans-serif;    
    font-size: 0.9em;
    border-style: inset;
    border-width: thin;
    vertical-align: middle;
}
select
{
    padding: 5px;   
}


This is the DDL code

ASP.NET
<asp:DropDownList ID="ddlTest" runat="server" DataSourceID="ODSTest" DataTextField="Test_Name" DataValueField="Test_ID" AutoPostBack="true" AppendDataBoundItems="true"                     OnSelectedIndexChanged="ddlTest_SelectedIndexChanged" Width="30%" >
<asp:ListItem Value="-1">--View All--</asp:ListItem>
</asp:DropDownList>
Posted
Updated 26-Apr-13 3:32am
v3
Comments
CHill60 26-Apr-13 8:00am    
It comes as no great surprise to most of us that some things won't render in IE - but for anyone to help you here you'll have to post some code
spankyleo123 26-Apr-13 8:07am    
Hi, thanks for your response

heres the CSS that I'm using.

<pre lang="CSS">

input[type=text], input[type=password], input.text, input.title, textarea, select
{
font-family: Arial, Helvetica, sans-serif;
font-size: 0.9em;
border-style: inset;
border-width: thin;
vertical-align: middle;
}
select
{
padding: 5px;
}
</pre>
CHill60 26-Apr-13 8:58am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900