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

Code Example 1

padding:10px 5px 15px 20px;
means
top padding is 10px
right padding is 5px
bottom padding is 15px
left padding is 20px

Code Example 2

div {
 
padding-top: 50px;

  padding-right: 30px;

  padding-bottom: 50px;

  padding-left: 80px;
}

Code Example 3

div {
 
  padding: 25px 50px 75px 100px;
}

Code Example 4

.box {
  padding: <padding-top> || <padding-right> || <padding-bottom> || <padding-left>
}

Code Example 5

padding is clockwise

Learn ReactJs, React Native from akashmittal.com