CSS: styled a checkbox to look like a button, is there a hover?

前端 未结 4 2097
我寻月下人不归
我寻月下人不归 2020-11-28 07:38

I\'ve created a small looking button to display instead of a checkbox. I was wondering if there was a way to also have a :hover look somehow? thanks

http://jsfiddle.

4条回答
  •  悲&欢浪女
    2020-11-28 07:57

    Do what Kelly said...

    BUT. Instead of having the input positioned absolute and top -20px (just hiding it off the page), make the input box hidden.

    example:

     
    

    Works better and can put it anywhere on the page.

提交回复
热议问题