1

I know that:

p+p

changes the style of the first p just after another p. But how can I change the css of the second p after a p ?

BoltClock
  • 665,005
  • 155
  • 1,345
  • 1,328
user1365010
  • 2,865
  • 7
  • 22
  • 42

1 Answers1

6

Simply add another +p:

p+p+p

If you have more than three p elements, this applies to the second one that comes after the first, as well as all subsequent elements. If you only want to apply to one p element, use:

p:first-child+p+p

Or if you can afford to ignore older browsers:

p:nth-child(3)
BoltClock
  • 665,005
  • 155
  • 1,345
  • 1,328