On a form I’ve two radio button Yes and No. I want to change the default look of radio buttons


to like this.

Edit: I would like to change the radio buttons into <a> anchor when JavaScript is enabled if it’s not easy to change the look of default radio via css.
Easiest way? Set the images as labels with the
forattribute pointing to the radio buttons. Then set the radio buttons todisplay:none;p.s. This uses built in HTML functionality that works everywhere and doesn’t require javascript. Use some CSS meta selectors (:hover etc…) to add animation.
UPDATE:
Just looping back after a long time and realised this could do with a little more explanation for beginners. When the
forattribute is set on a label, clicking the label is functionally the same as clicking the element it’sforattribute points to. For completeness, theforattribute should be set to theidof the form element.