0

In IE8 it shows up as light gray and is barely readable. Chrome and Firefox are fine . How can i solve it ?

RbG
  • 3,181
  • 3
  • 32
  • 43
Dinesh
  • 54
  • 5

3 Answers3

-1

Try using this

input[type=text]:disabled
{
  color:red
}
Nazik
  • 8,696
  • 27
  • 77
  • 123
Zainab
  • 25
  • 3
-1

Since IE7 and above supports the [attr] selector, you could do what was answered here.

input[disabled]
{
  color: red;
}

Hopefully that helps. I can't test it since I'm on Windows 7 and only have IE10.

Community
  • 1
  • 1
James
  • 5,137
  • 5
  • 40
  • 80
-1

You could use jQuery:

$('input[type=text]:disabled').css({
    'color' : 'red'
});

or CSS:

input[type=text]:disabled
{
   color:red
}

I strongly recommand CSS :D

Beniamin Szabo
  • 1,909
  • 4
  • 17
  • 26