Simple checkbox style
How do I make an simple checkbox style?
What is a simple checkbox style? How do you make a simple checkbox style? This script and codes were developed by Vincenzo on 07 October 2022, Friday.
Simple checkbox style - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple checkbox style</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! */ html, body { height: 100%; min-height: 100%;
}
body { display: flex; flex-direction: row; justify-content: center; align-items: center;
}
input[type="checkbox"] { position: relative; margin: .4rem;
}
input[type="checkbox"]:before { content: ' '; background: white; border: 0.15rem solid #1a998a; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 0.9rem; height: 0.9rem; transition: background .3s ease-in-out;
}
input[type="checkbox"]:checked:before { background: #1a998a;
}
input[type="checkbox"]:checked:after { content: ' '; background: transparent; border-left: .2rem solid white; border-bottom: .2rem solid white; position: absolute; top: 5%; left: 10%; width: 60%; height: 30%; z-index: 2; transform: rotate(-45deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <input type="checkbox" name="test" id="test" checked/><label for="test">Check me</label>
</body>
</html>
Simple checkbox style - Script Codes CSS Codes
html, body { height: 100%; min-height: 100%;
}
body { display: flex; flex-direction: row; justify-content: center; align-items: center;
}
input[type="checkbox"] { position: relative; margin: .4rem;
}
input[type="checkbox"]:before { content: ' '; background: white; border: 0.15rem solid #1a998a; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 0.9rem; height: 0.9rem; transition: background .3s ease-in-out;
}
input[type="checkbox"]:checked:before { background: #1a998a;
}
input[type="checkbox"]:checked:after { content: ' '; background: transparent; border-left: .2rem solid white; border-bottom: .2rem solid white; position: absolute; top: 5%; left: 10%; width: 60%; height: 30%; z-index: 2; transform: rotate(-45deg);
}
Developer | Vincenzo |
Username | vncnz |
Uploaded | October 07, 2022 |
Rating | 3 |
Size | 2,628 Kb |
Views | 14,168 |
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 |
Simple tags input with VueJS | 8,463 Kb |
AngularJS DateTimePicker concept | 4,393 Kb |
Tintometer | 3,302 Kb |
Square box with hover effect | 2,265 Kb |
Pure CSS cut corner box test | 2,981 Kb |
Advanced and dynamic input validation with AngularJS | 3,343 Kb |
Private Test | 4,434 Kb |
Search text highlight example with material.angular | 2,602 Kb |
Simple Date input with VueJS 2 | 10,802 Kb |
Datetime-writer DEMO | 3,087 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 |
Drawing a Terminal with CSS | Lachlanjc | 3,185 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Responsive Section hover effect to show content | Berdejitendra | 2,540 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Flat UI - Checkbox FIX | ARS | 2,663 Kb |
Clock with full screen background | Owebboy | 2,415 Kb |
A Pen by Anoop | Anoopjohn | 330,760 Kb |
Scrolling Horizontal Isotope | Bramus | 2,017 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!