prevent full div padding using display block code example
Example: css space between child elements
/*
this method will add bottom space but will not apply bottom space in last child
*/
div > *:not(:last-child) {
display: block;
margin-bottom: 30px;
}