Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE 10 Disabled input text color using CSS

$
0
0

Hi there, 

I am attempting to change the color of the text inside a disabled input textbox, it seems that I am able to change the color of the background with my current code, but for some reason the text color will not change no matter what I try. Here is my example code, i cannot just make a new class for this as the text field is already part of a necessary class in my development environment. Our clients must use IE 10 but are struggling to read the light grey text currently in use.

EG:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ttttest</title>
<style type="text/css">
 input[disabled="disabled"][type="text"] {
    background-color: black;
    color: blue;
}
</style>
</head>

<body>
<form>
<input type="text" disabled="disabled" value="some value" />
</form>
</body>
</html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>