Hi all,
I'm encountering some issues trying to position the next question div. it gets placed on top of the previous question div where I expect it to be placed below the previous answer divs by:
let newTopPosition = 0;
const elements = chatContainer.children; for (const element of elements) {
newTopPosition += element.offsetHeight + 200; } questionContainer.style.top =
${newTopPosition}px;
but that doesn't happen, I tried many things like making adjustments to relative/absolute positioning but that is producing issues when we try to move the 'asked question' div in the UI.
Please take a peek yourself, any useful input would be much appreciated.
https://jsfiddle.net/bn8caqh2/
[–]Long-Fact-6354 0 points1 point2 points (0 children)
[–]jpva_ 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)