Basically this is relative to your border, if you want to add the space between the elements inside the border (i.e. have the borders touching), you should use the padding property.
If you want to add the space outside the borders (have the borders apart) you should use the margin property.
Check this picture for illustration:
