Board Thread:Support Requests - Getting Technical/@comment-6517-20180413130006

I am looking to have two independent templates–Template:JD test2, which floats left, and Template:JD test, which flows right–float on the same line. The problem I'm encountering is that, on those occasions wherein an article might only have JD test in use, the template doesn't pad properly and so JD test overlaps the content beneath it.

So my questions are as follows: Firstly, is it possible to float two completely independent templates on the same line? And secondly, is there some way to harmonise the code so that there's no overlapping?

EDIT: For those who are willing to take a look, here's the test page to check results. Thanks in advance, 