Thanks, that worked great!
Is it also possible to define where the element is positioned that I’m adding? Normally a position: absolute with left and right attributes should do the trick, but when I try to apply those attributes/properties to an element and I append that element to the window, it just positions the element to the top center.