Relative Content

Tag Archive for htmlcsscss-selectorspseudo-classis-pseudo-class

CSS “:is()” pseudo-class with relative selectors

I want to style specific “sections that are directly inside the body” and “sections that are directly inside a div directly inside the body” with the “:is()” pseudo-class, without the redundancy (with relative selectors).
I have the following code in a index.html file: