Skip to content

Commit 56d5594

Browse files
committed
Added id attributes to movement buttons.
1 parent b142162 commit 56d5594

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ <h3>Astronaut Chat</h3>
2323
<img src = "LaunchCode_rocketline_white.png" height = "75" width = "75" id = "rocket"/>
2424
</div>
2525
<div class="center-block">
26-
<button>Up</button>
27-
<button>Down</button>
28-
<button>Right</button>
29-
<button>Left</button>
26+
<button id="up">Up</button>
27+
<button id="down">Down</button>
28+
<button id="right">Right</button>
29+
<button id="left">Left</button>
3030
<h3>Space Shuttle Height</h3>
31-
<p id='spaceShuttleHeight'>0</p><p style = "display: inline-block;"> miles</p>
31+
<p id='spaceShuttleHeight'>0</p><span> miles</span>
3232
</div>
3333
</div>
3434
<div class="centered">

styles.css

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
width: 100%;
1717
}
1818

19+
#spaceShuttleHeight {
20+
display: inline-block;
21+
}
22+
1923
.center-block {
2024
text-align: center;
2125
display: inline-block;

0 commit comments

Comments
 (0)