Hi, I am trying to put image on the checkbox when it is checked,so that the default check mark will be replaced with my png image.but i could not achieve it,
can anyone help me out here.
another typo is that you didnt close the quotes around “checkbox”.
Still, you are going about it the wrong way. unfortunately, styling actual inputs is difficult if not impossible. the trick is to style an adjacent element, usually a label and cover up the check box.
Hi, it’s amazing…thank you for this…by the way is it possible to make my checkbox bigger, I mean to increase the height,I tried but i failed to achieve…
to make the actual ckeck box bigger, you need to change the display type of the input first.
For example, style the input[type=‘checkbox’] {display: inline-block; height 100px; width:100px} ( float , and display:block should also work, but they each have their own side effects)