Check out example codes for "Set table cellpadding and cellspacing in CSS". It will help you in understanding the concepts better.

Code Example 1

td { 
    padding: 10px;  /* cellpadding */
}

table { 
    border-spacing: 10px;   /* cell spacing */
    border-collapse: separate;
}

Learn ReactJs, React Native from akashmittal.com