Solved

IE6 CSS issue with <select> tag

Posted on 2010-11-13
5
649 Views
Last Modified: 2012-05-10
I've just discovered that the Select elements on my site display terribly in IE6. The input fields look fine, but none of the styles seem to apply to the Select elements. The CSS style is:

#customForm input, select
{
    padding: 6px;
    color: #949494;
    font-family: Arial,  Verdana, Helvetica, sans-serif;
    font-size: 14px;
    border: 1px solid #cecece;
    width: 400px;
}

Is there any way to fix this?

0
Comment
Question by:bumbling_fool
5 Comments
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
Comment Utility
In IE we can't apply many of the CSS styles to SELECT element.
There are many JavaScript/jQuery based solutions that can be used as a replacement for SELECT. Try googling for one.
0
 

Author Comment

by:bumbling_fool
Comment Utility
The style works in later versions of IE. Is it simply not possible in IE6?
0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
Comment Utility
IE7 and earlier I believe. However I have faced some issues with select and file input element styling in IE8 also.
0
 
LVL 44

Expert Comment

by:scrathcyboy
Comment Utility
You cannot style the border in IE6, it doesn't work --
http://stackoverflow.com/questions/380037/ie6-ie7-css-border-on-select-element

And most of the other styling you have applied to a select element won't work in IE 6 --
http://www.google.com/search?num=30&q=CSS+Select+IE6
0
 
LVL 3

Accepted Solution

by:
cloud-9 earned 500 total points
Comment Utility
IE uses Windows selects, so they can't be styled very well in anything less than IE 8. When I have to support IE 6 or 7 with selects, I usually just have a special stylesheet that makes the font-size slightly large so the selects are at least the same dimensions.

Unless your sure more than 15% of your target audience is using IE 6, I would drop support for it. Even those statistics that favor IE show that less than 5% of total users use it. Thats the same percentage of users that don't use JS and/or Flash and have been ignored for years.

As mentioned there are plenty of JS solutions out there. Here are a couple:

http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/

http://www.kaktus.cc/weblog/1192629359/

http://www.articlediary.com/article/jquery-multiselect-plugin-with-themeroller-support-284.html

JQuery UI is here: jqueryui.com

However, IE 6 has no support of CSS 2, so even these JS solutions may not work very well.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML 5 video and audio or Flash 1 29
How to add loader animation to a page ? 2 21
html input clean up 3 30
Creating a slider 12 33
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now