Checkbox

Developer
Size
2,493 Kb
Views
24,288

How do I make an checkbox?

Nice design https://dribbble.com/shots/755717-Switch. What is a checkbox? How do you make a checkbox? This script and codes were developed by Nick Nikolov on 17 October 2022, Monday.

Checkbox Previews

Checkbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Checkbox</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.cs'> <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! */ label{ display:block; padding:5px 10px; line-height:20px; font-family:Roboto,Arial,sans-serif; font-size:12px;
}
[type="checkbox"]{	vertical-align:middle;	display:inline-block;	position:relative;	-webkit-appearance: none;	background:#ddd;	box-shadow:none;	box-shadow:inset rgba(0,0,0,0.1) 0px 0px 3px;	border-radius:2px;	height:16px;	width:30px;	-webkit-transition:all 0.2s ease-in-out;	outline:none;
}
[type="checkbox"]:after{	-webkit-transition:all 0.2s ease-in-out;	content:'';	display:block;	position:absolute;	top:1px;	left:1px;	height:14px;	width:14px;	background:#f8f8f8;	border-radius:1px;	box-shadow:rgba(0,0,0,0.06) 2px 0px 1px -1px;
}
[type="checkbox"]:checked{	background:#53d769;
}
[type="checkbox"]:checked:after{	left:15px;	box-shadow:rgba(0,0,0,0.1) -2px 0px 1px -1px;	color:#fff;	text-shadow:rgba(0,0,0,0.05) 0px 1px 0px;
}
[type="checkbox"]:before{ -webkit-transition:all 0.2s ease-in-out;	font-family:FontAwesome;	text-align:center;	content:'\f00d';	line-height:13px;	font-size:8px;	display:block;	position:absolute;	top:1px;	left:15px;	height:14px;	width:14px;	color:#fff;
}
[type="checkbox"]:checked:before{ content:"\f00c"; left:1px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <label> <input type="checkbox" /> Option 1
</label>
<label> <input type="checkbox" /> Option 2
</label>
<label> <input type="checkbox" /> Option 3
</label>
</body>
</html>

Checkbox - Script Codes CSS Codes

label{ display:block; padding:5px 10px; line-height:20px; font-family:Roboto,Arial,sans-serif; font-size:12px;
}
[type="checkbox"]{	vertical-align:middle;	display:inline-block;	position:relative;	-webkit-appearance: none;	background:#ddd;	box-shadow:none;	box-shadow:inset rgba(0,0,0,0.1) 0px 0px 3px;	border-radius:2px;	height:16px;	width:30px;	-webkit-transition:all 0.2s ease-in-out;	outline:none;
}
[type="checkbox"]:after{	-webkit-transition:all 0.2s ease-in-out;	content:'';	display:block;	position:absolute;	top:1px;	left:1px;	height:14px;	width:14px;	background:#f8f8f8;	border-radius:1px;	box-shadow:rgba(0,0,0,0.06) 2px 0px 1px -1px;
}
[type="checkbox"]:checked{	background:#53d769;
}
[type="checkbox"]:checked:after{	left:15px;	box-shadow:rgba(0,0,0,0.1) -2px 0px 1px -1px;	color:#fff;	text-shadow:rgba(0,0,0,0.05) 0px 1px 0px;
}
[type="checkbox"]:before{ -webkit-transition:all 0.2s ease-in-out;	font-family:FontAwesome;	text-align:center;	content:'\f00d';	line-height:13px;	font-size:8px;	display:block;	position:absolute;	top:1px;	left:15px;	height:14px;	width:14px;	color:#fff;
}
[type="checkbox"]:checked:before{ content:"\f00c"; left:1px;
}
Checkbox - Script Codes
Checkbox - Script Codes
Home Page Home
Developer Nick Nikolov
Username necks
Uploaded October 17, 2022
Rating 3
Size 2,493 Kb
Views 24,288
Do you need developer help for Checkbox?

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!

Nick Nikolov (necks) Script Codes
Create amazing art & images with AI!

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!