-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid4.html
71 lines (70 loc) · 1.61 KB
/
grid4.html
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
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<title>Masai Calculator</title>
<style>
*{
font-family: sans-serif;
}
h1{
color:teal;
text-align: center;
}
#main{
width: 400px;
height:500px;
border:0px solid red;
display:grid;
grid-template-columns: repeat(4,80px);
grid-template-rows:repeat(5,80px);
gap:20px;
padding:30px;
margin:auto;
padding-left:50px;
padding-top:50px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
#main>div{
background-color:white;
border-radius:5px;
box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
text-align: center;
font-size: 20px;
padding-top:30px;
}
#main>div:nth-child(1){
grid-column:1/span 4;
}
#main .operations{
background-color:black;
color:white;
}
#main #clear{
background-color: red;
color:white;
}
</style>
</head>
<body>
<h1>Masai Calculator</h1>
<div id="main">
<div></div>
<div>1</div>
<div>2</div>
<div>3</div>
<div class="operations">+</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div class="operations">-</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div class="operations">*</div>
<div id="clear">C</div>
<div>0</div>
<div class="operations">=</div>
<div class="operations">/</div>
</div>
</body>
</html>