-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathact1-midterm
More file actions
88 lines (83 loc) · 2.32 KB
/
act1-midterm
File metadata and controls
88 lines (83 loc) · 2.32 KB
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
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Nested CSS Box Model Challenge – 5 Shades of Blue</title>
<style>
.box1 {
width: 500px;
height: 400px;
background-color: #ADD8E6; /* light blue */
border: 5px solid #00008B; /* dark blue */
padding: 20px;
margin: 40px auto;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.box2 {
width: 400px;
height: 300px;
background-color: #87CEFA; /* sky blue */
border: 4px dashed #1E90FF; /* dodger blue */
padding: 15px;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.box3 {
width: 300px;
height: 200px;
background-color: #B0E0E6; /* powder blue */
border: 3px dotted #4169E1; /* royal blue */
padding: 10px;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.box4 {
width: 200px;
height: 120px;
background-color: #ADD8E6; /* light steel blue */
border: 2px solid #4682B4; /* steel blue */
padding: 8px;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
}
.box5 {
width: 100px;
height: 60px;
background-color: #87CEEB; /* sky blue lighter */
border: 2px dashed #5F9EA0; /* cadet blue */
padding: 5px;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div class="box1">
Box 1
<div class="box2">
Box 2
<div class="box3">
Box 3
<div class="box4">
Box 4
<div class="box5">Box 5</div>
</div>
</div>
</div>
</div>
</body>
</html>