12th Dec 2021, 4:46 PM
arunava Sar008
arunava Sar008 - avatar
8 Réponses
+ 2
I fixed the css of the red box and put the definition of move() inside onload() https://code.sololearn.com/WJtFCI3euqMO/?ref=app
12th Dec 2021, 5:01 PM
Lisa
Lisa - avatar
+ 1
I don't know what it should look like, but now I also fixed the green box css. For demonstration, I changed the interval.
12th Dec 2021, 5:04 PM
Lisa
Lisa - avatar
+ 1
I updated it after posting... :) There was a space in the width and height of both boxes. It needs to be 50px instead of 50 px
12th Dec 2021, 5:29 PM
Lisa
Lisa - avatar
+ 1
There are several mistakes in your html and css. Use </div> instead of <div /> and you have double ;; in some parts of your css. There should be no space before px in css. 50px not 50 px https://code.sololearn.com/Wzi3zUK92787/?ref=app
14th Dec 2021, 8:48 AM
Bob_Li
Bob_Li - avatar
0
No need to create a new thread, you can post in the previous one! https://www.sololearn.com/Discuss/2940740/?ref=app It looks like you never call move()?
12th Dec 2021, 4:53 PM
Lisa
Lisa - avatar
0
Lisa But still after calling move it isn't work
12th Dec 2021, 4:56 PM
arunava Sar008
arunava Sar008 - avatar
0
Wow..great..but still looks different..
12th Dec 2021, 5:03 PM
arunava Sar008
arunava Sar008 - avatar
0
U made it right..my wrong
12th Dec 2021, 5:27 PM
arunava Sar008
arunava Sar008 - avatar