+ 4
I have the code below. The text from the red div is acting weird when I press the red div. How to solve that?
3 Réponses
+ 5
Alex
Instead of "fixed" try "absolute" for #blueQuest, #redQuest
Absolute: The element is positioned relative to its first positioned (not static) ancestor element.
Fixed: The element is positioned relative to the browser window.
https://code.sololearn.com/WZj4pr04HnB1/#css
+ 5
Fixed, in your code at line 17:
transition:transform 0.25s;
https://code.sololearn.com/WiMA4ZZaQCbP/?ref=app
+ 4
Yay. It worked. Thank you ODLNT and Farhan🏁[Traveling] !