-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
66 lines (60 loc) · 1.32 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Resets margin and padding and centers the calculator */
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: gray;
}
/* Creates the layout for the numbers, clear, and decimal */
#numberButtons {
display: grid;
grid-template-areas:
"seven eight nine"
"four five six"
"one two three"
"clear zero decimal";
}
/* Sets the layout for the operator buttons */
#operatorButtons {
display: grid;
grid-template-areas:
"divide"
"multiply"
"subtract"
"add"
"equals";
}
/* Sets the overall layout of the calculator */
#calculatorBody {
display: grid;
grid-template-areas:
"calDisplay calDisplay"
"numButtons opButtons"
"numButtons opButtons";
grid-template-rows: 150px 150px 150px;
grid-template-columns: 150px 150px;
border: 2px solid yellow;
}
/* Places the display */
#calculatorDisplay {
grid-area: calDisplay;
/* width: 290px;
height: 140px; */
border: 2px solid black;
}
/* Places the numbers to the left */
#numberButtons {
grid-area: numButtons;
/* width: 140px;
height: 440px; */
border: 2px solid red;
}
/* Places the operators */
#operatorButtons {
grid-area: opButtons;
/* width: 140px;
height: 440px; */
border: 2px solid purple;
}