Reset HTML input style for checkboxes to default in IE


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;
}

Updated on: 25-Jun-2020

144 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements