Emoji Checkbox
CSS:
.checkbox-emoji {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 16px;
}
.checkbox-emoji input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark-emoji {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #eee;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
}
.checkbox-emoji:hover input ~ .checkmark-emoji {
background-color: #ccc;
}
.checkbox-emoji input:checked ~ .checkmark-emoji {
background-color: #2196F3;
}
.checkmark-emoji:after {
content: "π";
display: block;
}
.checkbox-emoji input:checked ~ .checkmark-emoji:after {
content: "π";
}
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
π Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!