Removing unwanted space between elements?

How can I remove unwanted space between two elements automatically and instantly once it is created.
Thanks in advance.

You cannot. Regards!

Thanks for the reply.