Check out example codes for "css space between child elements". It will help you in understanding the concepts better.

Code Example 1

/*
	this method will add bottom space but will not apply bottom space in last child
*/

div > *:not(:last-child) {
    display: block;
    margin-bottom: 30px; 
}

Learn ReactJs, React Native from akashmittal.com