Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove IE11's "clear field" X button on Windows 8

Tags:

Following the advice given in Remove IE10's "clear field" X button on certain inputs?

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

worked great with IE 11 on Windows 7 but not with IE 11 on Windows 8.1

I also tried

.someinput::-ms-clear {     height: 0;     width: 0; }  

Any thoughts on removing the X on IE 11/Windows 8.1? Thanks

like image 730
Phil O Avatar asked Dec 09 '13 14:12

Phil O


2 Answers

I had the same issue and the most of the css didn't help me to remove the clear button. I solutioned this by simply setting width and height to 0 (plus display none)

.someInputdisplay::-ms-clear {display: none; width:0; height:0;} 

I hope this might be helpful!

like image 63
DD. Avatar answered Oct 04 '22 21:10

DD.


Check if "Display intranet sites in Compatibility View" was checked by default in Tools->Compatibility View Settings. Targetting ::-ms-clear and ::-ms-reveal doesn't work in compatibility mode.

like image 27
davyu Avatar answered Oct 04 '22 22:10

davyu