This is a basic but tricky question about styling header with General Sibling Selector. Many people make a mistake about using it (and write books!). It seems for me useless:
I'm currently doing this using Javascript, however, I was wondering if it's possible to select a certain child of an unordered-list and then it's immediate sibling, using CSS.
Example with 4 ...
I've got the following html/css which is intended to change a sibling element to red if the input element before it has a class of "invalid", My question is what would ...