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: "😊";
}
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to CSS,
- How to create a circular Image using pure CSS Code
- Horizontally Center Align tag in HTML using CSS
- Add scroll to div element in HTML Css
- Change CSS Background Opacity with Examples
- How to make text bold using CSS
- How to place two div elements next to each other
- Vertically Center Text in a DIV Element
- align image at middle of div element
- Tailwind CSS Hello World Example
- How to make div or text in html unselectable using CSS
- Only Chessboard using HTML and CSS Code Example
- Simple CSS Grid Example
- How to set CSS background-Image Property
- CSS Background Opacity with Examples
- reCAPTCHA Implementation Tutorial
- List of 32 CSS cursors web developers must know about
- How to Vertically Center Align Text in a Div using CSS Code Example
- 10 Must Know CSS Border Styles with Examples
- Tutorial : Simple Lightweight Pure CSS based Vertical Navigation Menu
- CSS: Apply opacity only for div background and not text
- Set Falling Show on Website for Christmas using Pure CSS Code
- How to make jsfiddle bootstrap ready
- Elegant CSS Box Shadows Ideas
- Responsive Web Design with CSS Media Queries: A Beginner's Tutorial [Updated for 2023]
- How to Center Align Image in Bootstrap
More Posts:- Lost your iPhone? Regenerate QR Code for Microsoft Authenticator App - Microsoft
- TL;DR List of 34+ New Features added to iOS 17 for iPhones - iOS
- How to do a Reverse Image Search Using Google Tools - Google
- java: ']' expected error [fixed] - Java
- How to Detect Phone Shakes Android Programming - Android
- SharePoint update append Required Field to display name of mandatory columns - SharePoint
- Its almost time - Apple Event September 10 10 am PDT ⚡️ - Apple
- How to add Data Analysis Add-in in Excel on Mac - Microsoft