Check out example codes for "sub menu not showing horizontal css". It will help you in understanding the concepts better.

Code Example 1

ul li a {
 display: block;
 text-decoration: none;
 color: #777;
 background: #fff;
 padding: 5px;
 border: 1px solid #ccc;
 border-bottom: 0;
 }

Learn ReactJs, React Native from akashmittal.com