HTML
CSS
JS
Run
Custom Checkboxes with icon
/* the container */ .custom-checkbox { display: inline-block; height: 40px; min-width: 60px; position: relative; margin-bottom: 30px; cursor: pointer; font-size: 24px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid #ededed; border-radius: 4px; padding: 5px 5px; } /* 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: 0; left: 0; right: 0; bottom: 0; z-index: -1; background-color: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; } /* on mouse-over, add a grey background color */ .custom-checkbox:hover input ~ .checkmark { background-color: #ededed; } /* when the checkbox is checked, add a blue background */ .custom-checkbox input:checked ~ .checkmark { background-color: #2196F3; color:#fff; } /* 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