Suppose the structure is div > p, can I apply styles to the div if p has a certain class name?
div > p.b --> then apply red to div
div > p.c --> another color
This is easy in jquery, but is it possible in pure CSS?
Suppose the structure is div > p, can I apply styles to the div if p has a certain class name?
div > p.b --> then apply red to div
div > p.c --> another color
This is easy in jquery, but is it possible in pure CSS?