You need to use these selectors inorder to hide the h3
, label
and checkbox
from where you've commented to
h3:nth-of-type(2) {
display: none;
}
h3:nth-of-type(2) ~ label {
display: none;
}
The first selector simply hides 2nd h3
, just to be more specific, you should use span2 h3
and not just h3
which will hide your h3
element, and in the second selector, I am hiding all the label
s which are preceded by 2nd h3