2

I have a disabled textbox, and i have applied the padding property to it and is working fine on every browser except IE8. Please see the below chrome image:

enter image description here

But in IE the same thing is shown as like:

enter image description here

CSS Code:

input[type=text]:disabled {    
    padding: 4px 9px !important;    
}

Please suggest me something how to solve this issue.

HarshSharma
  • 630
  • 3
  • 9
  • 34
  • @VitorinoFernandes the please let me know what css should i apply to match the height, because i have tried everything and its does not seems to be working. – HarshSharma Dec 15 '14 at 06:56
  • Check out [selectivizr](http://selectivizr.com/) – Vucko Dec 15 '14 at 06:59

1 Answers1

3

IE8 does not support the :disabled pseudo-class (see MDN).

Try using input[disabled] instead.

Mr_Green
  • 40,727
  • 45
  • 159
  • 271
Matijs
  • 3,118
  • 2
  • 29
  • 41