Skip to content

Commit 9d69aa0

Browse files
Move up button
1 parent 3c1ec17 commit 9d69aa0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dom-and-events/studio/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function init(){
4242
})
4343

4444
moveUp.addEventListener('click', () => {
45-
rocketship.style.backgroundColor = "red"
45+
rocketship.style.top
4646
})
4747

4848

dom-and-events/studio/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727

2828
.centered {
2929
text-align: center;
30+
}
31+
32+
#rocket {
33+
position: relative;
3034
}

0 commit comments

Comments
 (0)