Reset HTML input style for checkboxes to default in IE

JavascriptWeb DevelopmentFront End Scripts

It is not possible to reset the checkbox back to the default native style with some web browsers.

You can try this and list every type of input to style −

input[type="text"], input[type="password"] {
   border: 2px solid green;
}

You can also use the CSS3 pseudo-class, but it may or may not work in IE 11 −

input:not([type="checkbox"]) {
   border: 2px solid green;
}
raja
Published on 06-Apr-2018 12:46:33
Advertisements