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

HtmlCssInternet ExplorerWindows 8Internet Explorer-10

Html Problem Overview


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.

Html Solutions


Solution 1 - Html

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

Solution 2 - Html

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

Solution 3 - Html

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">

Solution 4 - Html

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

Solution 5 - Html

I don't have Windows 8 preview but have you tried just creating a custom input field using HTML and CSS? Maybe try this : http://www.webdesign4me.nl/Knowledge-Base/custom-input-field-using-html-and-css

Solution 6 - Html

The solution for IE10-docmode "standard" has been posted before.

I incidentially found some kind of workaround which is independent from IE10-docmode. If you can live with changing the width of all inputs to a maximum of 80 pixels use the following jquery:
$("input[type=text]").width(80);

Solution 7 - Html

Perhaps not the best solution, but if any of the other solutions on this page aren't working for you, try this.

Place a blank background image on the :before of the input. More specifically - I had my own clear button styled like the website, and IE underlayed its own. I changed the original transparent PNG with my clear icon, with a solid background one.

Other browsers don't see a difference, and it blocks the IE clear button. Only works when the input background color doesn't change I suppose.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionOliver SprynView Question on Stackoverflow
Solution 1 - Htmli_am_jorfView Answer on Stackoverflow
Solution 2 - HtmlEmreView Answer on Stackoverflow
Solution 3 - HtmlMattCTView Answer on Stackoverflow
Solution 4 - HtmlPushker YadavView Answer on Stackoverflow
Solution 5 - HtmlJudeJitsuView Answer on Stackoverflow
Solution 6 - HtmlOursopodiacView Answer on Stackoverflow
Solution 7 - HtmlMechowView Answer on Stackoverflow