A have CSS-code:
.hide, .hide + label ~ div {
display: none;
}
.hide:checked + label + div {
display: block;
}
It allows me to manipulate div next to label next to checked input.
It works fine, but is there a way, that I can manipulate div with checked/unchecked that is far away from input?
My div has class "dropdown-menu" and it is not related to input in any way and like 50 lines of code after the input.
Can I connect checked value with my "dropdown-menu" div in any way with CSS?