/* For a checked radio or checkbox */ input[type="radio"]:checked + label input[type="checkbox"]:checked + label /* For an unchecked radio or checkbox */ input[type="radio"]:not(:checked) + label input[type="checkbox"]:not(:checked) + label