Check out example codes for "css before is not working". It will help you in understanding the concepts better.

Code Example 1

.chart ul:after{
  content: "";
  border:1px solid #f30;
}

Learn ReactJs, React Native from akashmittal.com