I need to set it with CSS, not jquery.
The selector is for
all labels which do not have a sibling that is a checkbox or radio component.
a sample is:
<span>
<input id="item" type="checkbox">
<label for="item">Data</label>
</span>
This is because i have CSS which sets label to 12px, BUT it affects asp:checkboxes and asp:radio…, but i do not want them to be affected.
There isn’t a CSS selector for an element that doesn’t have a sibling of a certain kind.
But if you can guarantee that your structure is always an
inputfollowed by alabel, then you could use the next-sibling combinator with:not()like so to match thelabel:Otherwise you’re going to have to add classes to those labels, or use jQuery.