HTML
CSS
JS
Run
Custom Checkboxes
One
Two
Three
Four
/* the container */ .custom-checkbox { display: block; position: relative; padding: 10px 15px 10px 40px; margin-bottom: 30px; cursor: pointer; font-size: 16px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid #ededed; border-radius: 4px; } /* hide the browser's default checkbox */ .custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } /* create a custom checkbox */ .checkmark { position: absolute; top: 50%; transform: translateY(-50%); left: 15px; height: 15px; width: 15px; background-color: #fff; border-radius: 50%; outline: 5px solid rgb(33 150 243 / 8%); } /* on mouse-over, add a grey background color */ .custom-checkbox:hover input ~ .checkmark { background-color: #ccc; } /* when the checkbox is checked, add a blue background */ .custom-checkbox input:checked ~ .checkmark { background-color: #2196F3; } /* create the checkmark/indicator (hidden when not checked) */ .checkmark:after { content: ""; position: absolute; display: none; } /* show the checkmark when checked */ .custom-checkbox input:checked ~ .checkmark:after { display: block; }
Press Ctrl+Space Key for Auto complete and Intelli Sense