I am trying to apply color only parent level, by using :not()
operator. but no result. is it possible?
html:
<header>title <span>123</span></header>
CSS:
header:not(header span){
color: green;
}
<header>title <span>123</span></header>
header:not(header span){
color: green;
}