How to set space between to p tag

It’s just how inline-block elements behave.

Once upon a time, people made grids using inline-block and there you are to remove the spaces otherwise the elements won’t fit the grid. One method used was to add a comment block between the elements.