Check out example codes for "list elements vertically in html". It will help you in understanding the concepts better.

Code Example 1

li {
   display: inline-block;
}

Code Example 2

.list-item
{
    float: left;
    clear: left;
}

Code Example 3

display: inline-block

Learn ReactJs, React Native from akashmittal.com