Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove the cross sign and password reveal sign in the IE 9, 8 & 7 modes of IE 10?

I tried following solution to remove "cross" & "password reveal" sign, but it works only in IE 10 mode. I want to remove "Cross" & "password revel" sign from every version mode (9, 8 & 7) of IE 10.

<style>
    ::-ms-clear{display: none;}
    ::-ms-reveal{display: none;}
</style>

I am sharing screenshot of demo form. Please suggest solution.

Below screenshot was taken from IE7

like image 256
Ravi Majithia Avatar asked Jun 28 '13 10:06

Ravi Majithia


1 Answers

Try using more specific CSS selectors

<style>
    input[type=text]::-ms-clear{display: none;}
    input[type=password]::-ms-reveal{display: none;}
    .specific_input_class::-ms-clear{display: none;}
    #specific_input_element::-ms-clear{display: none;}
</style>
like image 72
mrmoje Avatar answered Oct 20 '22 19:10

mrmoje