Objective

How to target a CSS element after another one, but not necessarily immediately after, with the same parent. 

Example: To target every <p> elements after <div> elements and with the same parent

div ~ p {
    ...
}

Comments

  • Difference with this variant is that the element does not have to be immediately after
  • CSS 3

See also

Source

 

Keep Me Informed

Keep me informed of the latest extensions releases and offers. One email maximum per month.

Offer Me A Coffee!

If you like my work, offer me a coffee! Nick.