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

前端 未结 4 2089
我寻月下人不归
我寻月下人不归 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 08:01

    Do this for a cool border and font effect:

    #ck-button:hover {             /*ADD :hover */
        margin:4px;
        background-color:#EFEFEF;
        border-radius:4px;
        border:1px solid red;      /*change border color*/ 
        overflow:auto;
        float:left;
        color:red;                 /*add font color*/
    }
    

    Example: http://jsfiddle.net/zAFND/6/

提交回复
热议问题