Item positioning not working with Javascript
I am trying to make a typing game (following a tutorial) but my code doesn’t work the same as theirs. When the position in CSS is absolute, the cursor stays in the right position when i resize the window but disappears when i type. When the position is fixed, it doesn’t align with the text correctly when i resize the window but does move how i want it as i type. i tried lots of combinations and solutions but i don’t know how to fix it.