color checkbox css when clicked
input[type=checkbox]:checked {
/*CSS after CHECKED*/
color: #ffd369;
}
color checkbox css when clicked
input[type=checkbox]:checked {
/*CSS after CHECKED*/
color: #ffd369;
}
checkbox input in css
//all checkbox
input[type="checkbox"]{
box-shadow: 0 0 0 3px hotpink;
}
// all checked checkbox
input[type="checkbox"]:checked {
box-shadow: 0 0 0 3px hotpink;
}
custom checkbox with image css
#trigger {
display: none;
}
.checker {
background-image: url(assets/checkboxes.png);
background-position: left center;
background-size: auto 100%;
width: 40px;
height: 40px;
background-repeat: no-repeat;
}
#trigger:checked + .checker {
background-position: right center;
}
custom checkbox with image css
<div>Check me!</div>
<input id="trigger" type="checkbox">
<label for="trigger" class="checker"></label>
css style a checkbox
/*this creates a circle checkbox with another smaller circle
inside when checked, it looks nice ...*/
input[type='checkbox'] {
-webkit-appearance:none;
display:inline-block;
width:16px;
height:16px;
padding:0px;
margin:0px;
margin-right:5px;
background:white;
border-radius:20px;
border:1px solid #ddd;
border: 1px solid #dee2e6;
box-sizing:content-box;
line-height:16px;
vertical-align: sub;
position:relative;
}
input[type='checkbox']:checked {
border:1px solid #55468c;
}
input[type='checkbox']:checked:after{
content:'';
position: absolute;
width: 12px;
height: 12px;
border-radius: 12px;
background: #55468c;
top:50%;
transform: translateY(-50%);
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
custom checkbox in css
/* Custom CSS Checkbox */
<input type="checkbox">
<label>
<span class="custom-checkbox"></span> my checkbox
</label>
[type="checkbox"] {
opacity: 0;
position: absolute;
}
.custom-checkbox {
min-width: 0.75em;
min-height: 0.75em;
margin-right: 0.75em;
border: 2px solid currentColor;
border-radius: 50%;
display: inline-block;
}
[type="checkbox"]:checked+label .custom-checkbox {
border-color: blue;
background: blue;
box-shadow: inset 0 0 0 2px white;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us