Check out example codes for "css selector for sibling element". It will help you in understanding the concepts better.

Code Example 1

/* Paragraphs that come immediately after any image */
img + p {
  font-weight: bold;
}

Learn ReactJs, React Native from akashmittal.com