Skip to content

Commit 8b11c84

Browse files
committed
added button-left and button-right classes for positioning
1 parent 4785cca commit 8b11c84

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

assets/css/style.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,28 @@ h1,h2,h3,h4,h5,h6 {
4949
opacity: 0.85;
5050
}
5151

52+
.button-left {
53+
left: 25%;
54+
}
55+
56+
.button-right {
57+
left: 50%;
58+
}
59+
5260
#button-red {
5361
background-color: #ff0000;
54-
left: 25%;
5562
}
5663

5764
#button-yellow {
5865
background-color: #ffff00;
59-
left: 50%;
6066
}
6167

6268
#button-blue {
6369
background-color: #1b1bf7;
64-
left: 25%;
6570
}
6671

6772
#button-green {
6873
background-color: #008000;
69-
left: 50%;
7074
}
7175

7276
#start {

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ <h4 id="ml-heading">Max Length: <span id="maxlength">0</span></h4>
1717

1818
<!-- Main body-->
1919
<div class="container">
20-
<button data-listener="false" class="node" id="button-red"></button>
21-
<button data-listener="false" class="node" id="button-yellow"></button>
20+
<button data-listener="false" class="node button-left" id="button-red"></button>
21+
<button data-listener="false" class="node button-right" id="button-yellow"></button>
2222
</div>
2323
<div class="start-container">
2424
<button class="button" id="start" onclick="newGame()">Start Game</button>
2525
</div>
2626
<div class="container">
27-
<button data-listener="false" class="node" id="button-blue"></button>
28-
<button data-listener="false" class="node" id="button-green"></button>
27+
<button data-listener="false" class="node button-left" id="button-blue"></button>
28+
<button data-listener="false" class="node button-right" id="button-green"></button>
2929
</div>
3030
<!-- Main body end. -->
3131

0 commit comments

Comments
 (0)