How to change the border color of the checkbox and radio button (circle and rectangle color) using CSS?
I tried lot but not getting a correct one.
Please advice me?
How to change the border color of the checkbox and radio button (circle and rectangle color) using CSS?
I tried lot but not getting a correct one.
Please advice me?
It simply is not possible. However, there is a workaround where the actual checkbox is made invisible and the styled label is used as an overlay. Looks good and works fine.
More about it here: http://css-tricks.com/the-checkbox-hack/
Wrap the checkbox with a div and then put a border around it or create a table
and put border around the td
div{
border: 1px solid red
}
or
td{
border: 1px solid red
}
<div>
<input type="checkbox"/>
</div>
You can make a custom radio button. You can use js to show or hide a image. Image will be looks like as designed check box and original checkbox should be hide. Change the value of checkbox on image click.