Style Radio buttons with CSS and use image

后端 未结 2 1984
不思量自难忘°
不思量自难忘° 2021-01-22 12:15

Is there a easy and simple way to style radio buttons with only CSS, so I click an image instead of a bullet? Like thumbs up / thumbs down for example.

I have two radio

2条回答
  •  情深已故
    2021-01-22 12:40

    I think hiding radio button and use label like you are doing is enough. But may need some correction. "for" attribute in label points to id, not the value you are doing now. And to group the radio button use name, not id like you are doing now.

提交回复
热议问题