Check out example codes for "set items inline html". It will help you in understanding the concepts better.

Code Example 1

display:inline;

Code Example 2

span.a {
  display: inline; /* the default for span */
  
  width: 100px;
  height: 100px;
  
  padding: 5px;
  border: 1px solid blue; 
  background-color: yellow; 
}

span.b {

    display: 
  inline-block;
  width: 100px;
  height: 
  100px;
  padding: 5px;
  border: 1px 
  solid blue; 
  background-color: yellow; 
}


  span.c {
  display: block;
  width: 
  100px;
  height: 100px;
  padding: 5px;
  
  border: 1px solid blue; 
  background-color: yellow; 
}

Learn ReactJs, React Native from akashmittal.com