Check out example codes for "css space between elements". It will help you in understanding the concepts better.

Code Example 1

/* Answer to "css space between elements" */

/*
  There's many ways to add space between elements. However, the
  most common ways are;
  > <br> HTML tag - https://www.w3schools.com/tags/tag_br.asp
  > Padding - https://www.w3schools.com/css/css_padding.asp
  > Margin - https://www.w3schools.com/css/css_margin.asp
  > Position - https://www.w3schools.com/css/css_positioning.asp

  The links after explains in detail what the four most common ways
  of spacing out elements are.

  What's my personal opinion? Well, I really.. love.. margin! :D
  https://www.w3schools.com/css/css_margin.asp
*/

Learn ReactJs, React Native from akashmittal.com