I have a HTML page with contents (div, h1, ...). With interaction on one of these contents I would like to affect my body. I look at ~ and + sibling symbol for CSS but without success.
Is there a way to achieve what I want to do ?
I have a HTML page with contents (div, h1, ...). With interaction on one of these contents I would like to affect my body. I look at ~ and + sibling symbol for CSS but without success.
Is there a way to achieve what I want to do ?
CSS provides nothing that allows you to modify an element based on its children or elements that follow it.
You'll need to look to JavaScript for that.