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

Code Example 1

/* HTML */
<div class="grid">
	<div class="grid-item">
	<div class="grid-item">
	<div class="grid-item">
</div>

<style>
/* CSS */
	.grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 20px; /* this will put a gap of 20px between the columns of the grid */
	}
</style>

Learn ReactJs, React Native from akashmittal.com