I am looking to place elements on a page based on where the user clicks with their mouse. I am currently trying to add a string to the div using the .append()
method.
The issue I am facing: how can I add two elements to the div without affecting other elements. I have attempted using absolute positioning with margins and relative positioning with top and left, but have not had any success.
In this (demo..), I have simplified what I am attempting to do. When clicking on generator1 and generator2, two buttons should appear side by side on the page, but instead they are appearing on separate rows.
On another note: "I am new to CSS" ;)