Custom checbox with css
How do I make an custom checbox with css?
What is a custom checbox with css? How do you make a custom checbox with css? This script and codes were developed by Tommy on 30 December 2022, Friday.
Custom checbox with css - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Custom checbox with css</title> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'> <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! */ div { margin: 10px;
}
.regular-checkbox { display: none;
}
.regular-checkbox + label.pseudo-checkbox { background-color: #11acff; /* border: @border;
*/ padding: 9px; display: inline-block; position: relative; /* -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0;*/ vertical-align: middle;
}
.regular-checkbox:checked + label.pseudo-checkbox { background-color: #11acff; /* border: @border;
*/
}
.regular-checkbox:checked + label.pseudo-checkbox:after { font-family: FontAwesome; content: "\f00c"; font-size: 14px; position: absolute; top: -1px; left: 1px; color: #fff; /* content: " "; width: 12px; height: 12px; background: #000; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; */
}
label.pseudo-checkbox { display: inline; margin-right: 10px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <label><input type="checkbox" />this is normal check box</label>
<br />
<input type="radio" />
<div> <label> <input type="checkbox" id="checkbox-1-1" class="regular-checkbox"> <label for="checkbox-1-1" class="pseudo-checkbox"></label>hoehoe </label>
</div>
<div> <label> <input type="checkbox" id="checkbox-1-2" class="regular-checkbox"> <label for="checkbox-1-2" class="pseudo-checkbox"></label>fuafua </label>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Custom checbox with css - Script Codes CSS Codes
div { margin: 10px;
}
.regular-checkbox { display: none;
}
.regular-checkbox + label.pseudo-checkbox { background-color: #11acff; /* border: @border;
*/ padding: 9px; display: inline-block; position: relative; /* -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0;*/ vertical-align: middle;
}
.regular-checkbox:checked + label.pseudo-checkbox { background-color: #11acff; /* border: @border;
*/
}
.regular-checkbox:checked + label.pseudo-checkbox:after { font-family: FontAwesome; content: "\f00c"; font-size: 14px; position: absolute; top: -1px; left: 1px; color: #fff; /* content: " "; width: 12px; height: 12px; background: #000; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; */
}
label.pseudo-checkbox { display: inline; margin-right: 10px;
}
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,825 Kb |
Views | 4,048 |
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 |
Get Form value with jQuery | 1,931 Kb |
Materialize css | 3,074 Kb |
A Pen by Tommy | 1,738 Kb |
AngularJS | 2,264 Kb |
CSS Sub-orderd list | 1,965 Kb |
Customise Scroll Bar with css | 2,853 Kb |
CSS animation | 2,194 Kb |
Vue with axios sample | 2,991 Kb |
Flex box | 2,171 Kb |
Timeline sample | 2,263 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 |
Custom checkbox example | Capelo | 3,495 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
DNA Double Helix | Hugo | 5,112 Kb |
Button shaking | SusanneLundblad | 2,227 Kb |
Very Simple Slider | Doodlemarks | 2,682 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Promodoro | Bencarp | 1,712 Kb |
Twitch API | Coderpilot | 3,412 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Save for later... | Victorfreire | 1,359 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!