ux designer – How to position the text

I always had this question in mind and I never managed to answer it.

How do you position the text in relation to other elements? Suppose you want a block of text, a block of text title, 16 pixels from another element. You delete the line spacing (aka line-height) on the text and move the block by 16 pixels or keep the line spacing and move the block by 16 pixels, which keeps the block of text away from the text. previous element. Please see the attached picture for clarification.

enter the description of the image here

What is the best practice for my problem?

Thank you