I want to add custom style as :after on an input and if it's checked then slightly change the style. Is is it possible to achieve this for major browsers?
https://codepen.io/thor78/pen/xYxqbL?editors=1100
This currently works for Chrome only:
input[type=checkbox]:after {
content: "";
display: inline-block;
padding: 12px;
background: transparent;
border: 2px solid orange;
position: relative;
top: -8px;
left: -8px;
border-radius: 3px;
}
input[type=checkbox]:checked:after {
border: 2px solid green;
}