html – How to style a checkbox using CSS – Stack Overflow

This post was originally published on this site

input[type=”checkbox”] { position: absolute; opacity: 0; z-index: -1; } /* Text color for the label */ input[type=”checkbox”]+span { cursor: pointer; font: 16px sans-serif; color: black; } /* Checkbox un-checked style */ input[type=”checkbox”]+span:before { content: ”; border: 1px solid grey; border-radius: 3px; display: inline-block; width …

Stay up to date
Register now to get updates on promotions and coupons.

Shopping cart