Skip to content

Instantly share code, notes, and snippets.

@onuproy
Created August 7, 2019 09:18
Show Gist options
  • Save onuproy/2a6ea85fc9598405468182da7da435b6 to your computer and use it in GitHub Desktop.
Save onuproy/2a6ea85fc9598405468182da7da435b6 to your computer and use it in GitHub Desktop.
Custom Check box
<div class="col-xl-12">
<label class="custom_checkbox_2">
<input type="checkbox"> <p> <span>I don’t have a Member ID.</span></p>
<span class="checkmark"></span>
</label>
</div>
/*Custom Check box*/
.custom_checkbox_2 {
position: relative;
cursor: pointer;
}
.custom_checkbox_2 input {
position: absolute;
opacity: 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
cursor: pointer;
height: 0;
width: 0;
}
.custom_checkbox_2 .checkmark {
position: absolute;
top: 3px;
left: 0;
height: 22px;
width: 23px;
background-color: #FFF;
border: 2px solid #FFF;
border-radius: 2px;
}
.custom_checkbox_2 .checkmark:after {
content: "";
position: absolute;
display: none;
}
.custom_checkbox_2 input:checked ~ .checkmark {
background-color: #FFF;
}
.custom_checkbox_2 input:checked ~ .checkmark:after {
display: block;
}
.custom_checkbox_2 .checkmark:after {
left: 4px;
top: -2px;
width: 10px;
height: 17px;
border: solid #FF6531;
border-width: 0 4px 4px 0;
-webkit-transform: rotate(45deg);
transform: rotate(31deg);
}
.custom_checkbox_2 p span {
margin-left: 34px;
padding-top: 0px;
font-size: 15px;
color: #FFF;
text-transform: none;
display: block;
font-weight: 700;
}
@onuproy
Copy link
Author

onuproy commented Sep 9, 2020

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment