IE8 disabled element text rendering differences

Below is a super zoomed in image of a disabled <select> element (top), and a disabled <textarea> element with it's text highlighted for more emphasis on the issue (bottom), both being rendered by the god-awful IE8.

I've disabled all styles in various dev tools, overridden color, text-shadow font-family etc...

Why do <textarea> and other <input [type='*']> elements render with some goofy text highlighting, while <select> elements render without it, and even more importantly is there a workaround to get rid of that text highlight.

Answers


IE adds it's own styles and while you can control background and font colors, something like

 input[type="*"]:disabled {
   background-color: none;
   color: gray;
 }

you cannot remove shadows. One alternative - don't set actual DISABLED attribute, but simulate it instead e.g use readonly attribute, set onfocus = "this.blur()" etc.


Need Your Help

How can I list the current users audiences in sharepoint 2010?

sharepoint

In Sharppoint 2010 have a webpart that works off audiences to target content to users in a global portla (content comes form all over) how can I give users the ability to see which audience they are

Java: how to designate a dir so I don't need to specify it in order to reference its .jar files

java jar

Let's say that I have a jar file @ /usr/local/apps/app1/java/file.jar. I would like to be able to reference file.jar in the java command without typing the full path. For example, java -jar file....