Form controls, such as checkbox
, radio
, select
, etc., using their own style platform, based on the operating system theme. You can reset using and properties . But these properties will also reset the control dimensions and may be something else, so you will need to manually add the width / height: -moz-appearance
-webkit-appearance
input[type=checkbox] {
background: red;
-webkit-appearance: none;
-moz-appearance: none;
height: 16px;
width: 16px;
}
In addition, the flag must be provided with state rendering:
input[type=checkbox]:checked {
background-image: url(/*custom checked icon url*/);
}
source
share