@Doitsu
The
not pseudo class seems to be what I was after, however with its limited support I doubt if I will be using it.
@RbnJrg
I don't think your solution would work, the second paragraph isn't a "child" of the first, it's just a successor and would be selected by P + P. In any case with the limited support I wouldn't want to use it.
It's not a big problem anyway - I was just looking for a lazy way to catch some exceptions to the general rule. I'll continue with my original method where I need to invert the logic and specify the classes for the initial p using something like :
Code:
p {
text-indent : 2em;
}
p.class1 + p, p.class2 + p, p.class3 + p {
text-indent : 0;
}
Thanks for the ideas, I wondered if I was missing something obvious.
BobC