input[type='checkbox'] { margin-right: 5px; cursor: pointer; font-size: 14px; width: 16px; height: 14px; position: relative; } input[type='checkbox']:after { position: absolute; width: 15px; height: 18px; top: 0; content: ' '; color: #fff; display: inline-block; visibility: visible; padding: 0px 2px; background: #ffffff; border: 1px solid #dddddd; } input[type='checkbox']:checked:after { content: '✓'; font-size: 14px; font-weight: 600; background-color: #1773d6; }