Is there any way that i can select on css the labels that are for checkboxes only?
I am using this css code input[type="radio"], input[type="checkbox"] { position: absolute; left: -999em; }
label:before
{
display: inline-block; position: relative; top:0.25em; left:-2px;
content:''; width:25px; height:25px;
background-image:url(formelements.png);
}
input[type="checkbox"] + label:before
{
background-position: 0 -25px;
}
input[type="checkbox"]:checked + label:before
{
background-position: 0 0 ;
}
input[type="radio"] + label:before
{
background-position: -25px -25px;
}
input[type="radio"]:checked + label:before
{
background-position: -25px 0;
}
If you want the image you can get it from here and also the guide i am following for the styling can be found here But the problem i am facing is that all my labels for all the inputs get affected. Is there a way to style only those labels that are for checkboxes?
Thanks in regards