Easy CSS3 checkboxes and radio buttons
How do I make an easy css3 checkboxes and radio buttons?
Explain how to design forms easily width '+' selector and :checked pseudo selector.. What is a easy css3 checkboxes and radio buttons? How do you make a easy css3 checkboxes and radio buttons? This script and codes were developed by Twikito on 11 September 2022, Sunday.
Easy CSS3 checkboxes and radio buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Easy CSS3 checkboxes and radio buttons</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ input { display:none;
}
input + label span { content:""; display:inline-block; width:19px; height:19px; margin:-1px 4px 0 0; vertical-align:middle; background:url(https://d3pr5r64n04s3o.cloudfront.net/tuts/391_checkboxes/check_radio_sheet.png) no-repeat; cursor:pointer;
}
input[type="checkbox"] + label span { background-position:left top; }
input[type="radio"] + label span { background-position:-38px top; }
input[type="checkbox"]:checked + label span { background-position:-19px top; }
input[type="radio"]:checked + label span { background-position:-57px top; }
/* BLAH BLAH */
body { background:url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/low_contrast_linen.png) repeat; font:14px/20px Verdana; color:#aaa; }
div { width:150px; margin:50px auto; }
input:checked + label { color:#fff; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div> <p> <input type="checkbox" id="c1"> <label for="c1"><span></span>Check Box 1</label> </p> <p> <input type="checkbox" id="c2"> <label for="c2"><span></span>Check Box 2</label> </p> <p> <input type="radio" id="r1" name="rgroup"> <label for="r1"><span></span>Radio Button 1</label> </p> <p> <input type="radio" id="r2" name="rgroup"> <label for="r2"><span></span>Radio Button 2</label> </p>
</div>
<!-- Another Pen? codepen.io/Twikito --> <script src="js/index.js"></script>
</body>
</html>
Easy CSS3 checkboxes and radio buttons - Script Codes CSS Codes
input { display:none;
}
input + label span { content:""; display:inline-block; width:19px; height:19px; margin:-1px 4px 0 0; vertical-align:middle; background:url(https://d3pr5r64n04s3o.cloudfront.net/tuts/391_checkboxes/check_radio_sheet.png) no-repeat; cursor:pointer;
}
input[type="checkbox"] + label span { background-position:left top; }
input[type="radio"] + label span { background-position:-38px top; }
input[type="checkbox"]:checked + label span { background-position:-19px top; }
input[type="radio"]:checked + label span { background-position:-57px top; }
/* BLAH BLAH */
body { background:url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/low_contrast_linen.png) repeat; font:14px/20px Verdana; color:#aaa; }
div { width:150px; margin:50px auto; }
input:checked + label { color:#fff; }
Easy CSS3 checkboxes and radio buttons - Script Codes JS Codes
/*
Original by Nick Dugger on WebDesignTuts+
https://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-easy-css3-checkboxes-and-radio-buttons/
Pseudo elements :before and :after are not recommanded because click and cursor does not work without padding hack
DON'T FORGET THE :disabled PSEUDO SELECTOR
*/
Developer | Twikito |
Username | Twikito |
Uploaded | September 11, 2022 |
Rating | 3.5 |
Size | 2,742 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Easy and Bulletproof ScrollTo Script | 4,111 Kb |
Menu item 3D effect on hover with only css | 2,710 Kb |
CSS-only shadow-scrolling effect | 3,062 Kb |
Input awesome effect on focus with only css | 3,789 Kb |
Image with hover CSS3 effect and bottom overlay | 2,630 Kb |
Picture hover effect with pseudo-elements | 2,749 Kb |
Full page table inside the grid | 1,864 Kb |
Pure CSS Slider | 4,664 Kb |
Beautiful Textual Map of the USA with CSS | 7,816 Kb |
Input focus effect with only CSS | 4,411 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Slide In Panel | Vikvarg | 2,811 Kb |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
Background Images | Jooonebug | 2,100 Kb |
Wavy Road with Dashes | Jonobr1 | 2,679 Kb |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
Sass random color animation | Jotavejv | 4,827 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!