Custom Emoji Radio Buttons with CSS

In this tutorial we will see how to make a set of Custom Emoji Radio Buttons with CSS. Simple CSS is used for this purpose, HTML code and CSS code is given.

HTML Code

HTML Code is given below.

<form>
<input type="radio" id="mood-1" name="mood" value='Worried' class="radio" checked>
<label class="emoji emoji-1" for='mood-1'>😟</label>
    

<input type="radio" id="mood-2" name="mood" value='Sad' class="radio">
<label class="emoji emoji-2" for='mood-2'>😡</label>  
    

<input type="radio" id="mood-3" name="mood" value='Confused' class="radio">
<label class="emoji emoji-3" for='mood-3'>😔</label>  
    

<input type="radio" id="mood-4" name="mood" value='Happy' class="radio">
<label class="emoji emoji-4" for='mood-4'>😊</label>
    

<input type="radio" id="mood-5" name="mood" value='Joyful' class="radio">
<label class="emoji emoji-5" for='mood-5'>😂</label>      
</form>    

CSS Code

CSS Code is given below.

<style>
body
{
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Barlow Condensed' , sans-serif;
    background-color: #A1FFAC;
}
form
{
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 4px 2px #000;
}
.radio
{
    display: none;
}
.emoji
{
    font-size: 40px;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-block;
}
#mood-1:checked ~ .emoji-1,
#mood-2:checked ~ .emoji-2,
#mood-3:checked ~ .emoji-3,
#mood-4:checked ~ .emoji-4,
#mood-5:checked ~ .emoji-5
{
    background-color: #111;
}
</style>

Demo

Video Tutorial

Watch our video tutorial on Custom Emoji Radio Buttons with CSS.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript