Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet Explorer 10 Windows 8 Remove Text Input and Password Action Icons

I am testing a highly-customized web application in Internet Explorer 10 on Windows 8, since it is an up and coming release, and will likely be using my application some day. Take a look at this sample screenshot of some text input controls from the application:

enter image description here

Is there a way, either within HTML or CSS, to remove the action icons that are located to the right of the text and password input controls?

Thank you for your time.

like image 839
Oliver Spryn Avatar asked May 31 '12 23:05

Oliver Spryn


4 Answers

You need to use the -ms-clear pseudo-element. And use -ms-reveal for the password box.

This should do it:

  ::-ms-clear {
      display: none;
  }
like image 188
i_am_jorf Avatar answered Nov 03 '22 19:11

i_am_jorf


You should instead use this because of the reason in this answer.

/* don't show the x for text inputs */
::-ms-clear {
    width : 0;
    height: 0;
}

/* don't show the eye for password inputs */
::-ms-reveal {
    width : 0;
    height: 0;
}
like image 36
Emre Avatar answered Nov 03 '22 19:11

Emre


jeffamaphone's answer works unless the browser is in compatability mode:

You need to use the -ms-clear psuedo-element. And use -ms-reveal for the password box.

This should do it:
::-ms-clear { display: none;
}

But, when the browser is in compatability mode, the reveal icon still appears. To get around this, force the browser into IE10 mode with this tag <meta http-equiv="x-ua-compatible" content="IE=edge">

like image 5
MattCT Avatar answered Nov 03 '22 21:11

MattCT


Remove action icons from text fields in Internet Explorer 10 just use this css pseudo element

 ::-ms-clear { 
  display: none; }

Remove action icons from password fields in Internet Explorer 10 just use this css pseudo element

::-ms-reveal
 {
   display: none; 
  }
like image 2
Pushker Yadav Avatar answered Nov 03 '22 20:11

Pushker Yadav