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

Oliver Spryn picture Oliver Spryn · Jun 1, 2012 · Viewed 34.2k times · Source

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.

Answer

i_am_jorf picture i_am_jorf · Jun 1, 2012

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;
  }