css - Internet Explorer 'input:checked + label:before' styling is not rendered -


i'm having trouble getting :checked styling custom checkboxes display in internet explorer.

they work fine in chrome.

enter image description here

... in ie

enter image description here

here's relevant styling

input[type="radio"], input[type="checkbox"] {     opacity: 1;     position: absolute;     top: -9999;      & + label {         vertical-align: middle;     } }  input[type="radio"] + label:before, input[type="checkbox"] + label:before {     content: '\f3fd';     font-family: 'ionicons';     width: 26px;     height: 20px;     border: 2px solid #45555f;     font-size: 24px;     color: transparent;     display: table-cell;     text-align: center;     transition: 0.3s linear;     -webkit-transition: 0.3s linear;     -moz-transition: 0.3s linear;     -ms-transition: 0.3s linear;     -o-transition: 0.3s linear;     padding: 0 2px; }  input[type="radio"]:checked + label:before, input[type="checkbox"]:checked + label:before {     content: '\f383';     font-family: 'ionicons';     font-size: 24px;     width: 26px;     height: 20px;     text-align: center;     display: table-cell;     padding: 0 2px;     border: 2px solid #45555f;     color: #8ec549; }  input[type="radio"] + label:before {     border-radius: 50% !important; } 

i did notice internet explorer removes styling on load...

enter image description here

thanks help!

edit: codepen demo (this demo not work in ie either)

http://codepen.io/anon/pen/rljqyk

as opposed modifying :before pseudo element on checked used :after pseudo element active state , flick between opacities hide , show them accordingly.

thanks helped.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -