Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Placeholder not working with internet explorer

Little issue on my app, placeholders aren't present on Internet Explorer 11.

I tried the CSS sample below but without any success.

:-ms-input-placeholder { /* IE10–11 */
    color: #ccc !important;
    font-weight: 400 !important;
}

::-ms-input-placeholder { /* Edge */
    color: #ccc;
    font-weight: 400;
}

::placeholder { /* CSS Working Draft */
    color: #ccc;
    font-weight: 400;
}

Any suggestions on how to resolve this issue ?

like image 795
Hiroyuki Nuri Avatar asked Oct 18 '16 21:10

Hiroyuki Nuri


1 Answers

Finally found how to resolve this issue, the emulation was set at 9 as default on the debugger's screen even if internet explorer 11 was being used, so I added this on the head tag of the HTML.

<meta http-equiv="X-UA-Compatible" content="IE=11">

Which changes the compatability format to IE11.

like image 108
Hiroyuki Nuri Avatar answered Nov 15 '22 08:11

Hiroyuki Nuri