Click here to Skip to main content
11,705,617 members (54,233 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET CSS
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]
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: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 26-Apr-13 0:45am
Edited 26-Apr-13 3:32am
v3
Comments
CHill60 at 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 at 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 at 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
0 OriginalGriff 213
1 Sergey Alexandrovich Kryukov 170
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100