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;
}
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 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;
}
radio button css design for registration page
<!DOCTYPE html>
<html>
<head>
<style>
input[type = checkbox]{
-webkit-appearance: none;
background-color: #fafafa;
border: 1px solid #cacece;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
padding: 9px;
border-radius: 3px;
display: inline-block;
position: relative;
}
input[type = checkbox]:checked {
background-color: #e9ecee;
border: 1px solid #adb8c0;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1);
color: #99a1a7;
}
</style>
</head>
<body>
<form>
<input type="checkbox" name="gender" value="male" checked> Male<br>
<input type="checkbox" name="gender" value="female"> Female<br>
<input type="checkbox" name="gender" value="other"> Other
</form>
</body>
</html>
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