0
Can someone help me here?
I added a <p> tag but for some reason it wasn't showing up, I tried to change it's color, but nothing happened. Somehow help me... https://sololearn.com/compiler-playground/WqwRyCKw4Ihv/?ref=app
2 Réponses
+ 2
P is behind the red box because In css, you say "position: absolute"
https://sololearn.com/compiler-playground/WUjpnu2l29id/?ref=app
+ 1
StarCodes
my advice is to use containers like flex boxes. These are divs with display: flex assigned to them.
Grouping elements this way makes it easier to position elements. And moving them as a group also becomes easier.
This is gives more control as compared to using position and margin to directly control the placement of individual ungrouped elements in relation to the entire page.
I also fixed your js. the load function shouldn't be called multiple times. Better to define an update function instead.
https://sololearn.com/compiler-playground/WMIO326wEbud/?ref=app