Quantcast
Viewing all articles
Browse latest Browse all 20145

Problem with styling checkboxes

Hi,

I've tried to applied this http://wp-types.com/forums/topic/style-checkboxes/ but it doesn't worked for me.

div.categories-select input[type="checkbox"] {display:none;}
 
div.categories-select input[type='checkbox']+ label{
    display:inline-block ;
    width:35px ;
    height:24px ;
    margin:-1px 4px 0 0 ;
    vertical-align:middle ;
    background:url(/sprite-checkboxes3.png) left top no-repeat ;
    cursor:pointer ;
}
div.categories-select input[type="checkbox"]:checked+ label{
    background:url(https://eventlike.netbzh.fr/sprite-checkboxes3.png) -35px top no-repeat !important;
}

The only thing I've seen is that my input fields are inside label but I don't know if it is possible to modify this in my view.

Tx for your help

Gilles


Viewing all articles
Browse latest Browse all 20145

Trending Articles