How to place a widget beside a div/text so that they display as a continuous line

I ended up solving this (in a limited fashion) by just using text, which I linked to the function I wanted using javascript on click. This may not work for others still trying to do what my original intention had been, but maybe this will solve your problem too