Click here to Skip to main content
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 1:45am
Edited 26-Apr-13 4: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 390
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2014
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