Is p+p {} valid css? I have it in the css of a wordpress theme. When I took it out there was a change in the way paragraphs were displayed.
Yes. It's an adjacent sibling selector. It was always available in the modern browsers but only worked in IE when v8 came out.
What I mean is a padding value was given and it only appears on the 2nd 3rd etc... <p> tags, so it doesn't appear on the first one.
fadetoblack, this will not work in IE6 (if you care) and it's also a little bit brittle, since what if you do add some other, non-p element between some p's? The CSS would stop at that point, as then the p following the non-p element is in the same situation as the other "first p".