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

Code Example 1

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

padding: 10px 20px;//top & bottom then left & right

padding-top: 5px; //just top padding
padding-right: 10px; //just right padding
padding-bottom: 15px; //just bottom padding
padding-left: 20px; //just left padding

Code Example 2

div {
padding-top: 50px;

  padding-right: 30px;

  padding-bottom: 50px;

  padding-left: 80px;

Code Example 3

padding: top, right, bottom, and left

Code Example 4

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

Code Example 5

padding-top: 25px;

Code Example 6

<h2 style="padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px">London</h2>

Learn ReactJs, React Native from