-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.exercise.html
86 lines (78 loc) · 2.18 KB
/
index.exercise.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
display: flex;
justify-content: center;
align-items: center;
gap: 23px;
}
.box{
display: flex;
justify-content: center;
align-items: center;
height: 45px;
width: 45px;
border: 2px solid black;
color: rgb(255, 0, 0);
}
/*
.box2{
display: flex;
justify-content: center;
align-items: center;
height: 45px;
width: 45px;
border: 2px solid black;
}
.box3{
display: flex;
justify-content: center;
align-items: center;
height: 45px;
width: 45px;
border: 2px solid black;
}
.box4{
display: flex;
justify-content: center;
align-items: center;
height: 45px;
width: 45px;
border: 2px solid black;
}
.box5{
display: flex;
justify-content: center;
align-items: center;
height: 45px;
width: 45px;
border: 2px solid black;
} */
</style>
</head>
<body>
<!--
Given 5 boxes assign a roandom color and a random background to each box usingh DOM concept
-->
<!-- <div class="container">
<div id="redbox" class="box1">box</div>
<div id="bluebox" class="box2">box</div>
<div id="greenbox" class="box3">box</div>
<div id="yellowbox" class="box4">box</div>
<div id="greybox" class="box5">box</div>
</div> -->
<div class="container">
<div class="box">box</div>
<div class="box">box</div>
<div class="box">box</div>
<div class="box">box</div>
<div class="box">box</div>
</div>
<script src="script.js"></script>
</body>
</html>