
blog address: http://findnerd.com/list/view/custom-checkbox-and-radio-button-using-pure-css/3173
keywords: Custom Checkbox, Custom Radio Button, Radio Button, Checkbox, html
member since: Dec 8, 2015 | Viewed: 87
How To create Custom Checkbox and Radio Button Using Pure CSS
Category: Education
In this blog we are going to explain how to create custom checkbox and radio button using CSS. I have write CSS and HTML code separately, You can easily understand complete code. This blog is very useful for developers. radio-checkbox-button
CSS :-
**/*Radio button*/
.radio, .checkbox{display: inline-block;}
.radio { padding:5px; margin-left:40px; }
.radio input[type="radio"] { opacity: 0; position: absolute; cursor:pointer;}
.radio input[type="radio"] + label { color:#555; line-height:25px; display:inline-block; text-indent:-38px; }
.radio input[type="radio"]:checked + label > mark:before { content:' '; background:#0d7fbe; width:12px; height:12px; display:inline-block; margin:4px; border-radius:20px;}
......
HTML : -
{ More Related Blogs }
Education
React JS Training in chennbai ...
Nov 27, 2023
Education
Selenium testing certification...
Oct 4, 2023
Education
SUCCESS STORIES: MEET IIT-JEE ...
Sep 5, 2023
Education
Universities After 12th...
Aug 16, 2024
Education
Why Cool Math Puzzles and Math...
Apr 3, 2023
Education
How to Keep Your Toddler Engag...
Aug 24, 2022