Check out example codes for "how to add space tp table contents html css". It will help you in understanding the concepts better.

Code Example 1

table{ 
border-collapse:separate; 
border-spacing: 0 15px; 
} 
th{ 
background-color: #4287f5; 
color: white; 
} 
th,td{ 
width: 150px; 
text-align: center; 
border: 1px solid black; 
padding: 5px;
}
h2{ 
color: #4287f5; 
}

Learn ReactJs, React Native from akashmittal.com