Check out example codes for "css display div horizontally". It will help you in understanding the concepts better.

Code Example 1

.horizontalBlocks {
    display: inline-block;
  }

Learn ReactJs, React Native from akashmittal.com