-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (133 loc) · 2.79 KB
/
index.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Flag Project</title>
<style>
/* Write your CSS Code here */
.flag{
height: 900px;
width: 100%;
position: relative;
background-color: orange;
}
.flag > div {
position: absolute;
height: 600px;
width: 100%;
background-color: white;
top: 300px
}
.flag> div > div.wheel{
height: 290px;
width: 300px;
border: 3px solid darkblue;
border-radius: 50%;
position: relative;
top: 3px;
left:40%;
}
.flag > div > div.wheel> .line{
height: 100%;
width: 2px;
display: inline-block;
position: absolute;
left: 50%;
background: darkblue;
}
p{
font-size: 5rem;
position: absolute;
left: 40%;
color: white;
}
.green p{
left:44%
}
.wheel > p{
position: absolute;
color: darkblue;
top: 5%;
}
.line:nth-child(1) {
transform: rotate(15deg)
}
.line:nth-child(2) {
transform: rotate(30deg)
}
.line:nth-child(3) {
transform: rotate(45deg)
}
.line:nth-child(4) {
transform: rotate(60deg)
}
.line:nth-child(5) {
transform: rotate(75deg)
}
.line:nth-child(6) {
transform: rotate(90deg)
}
.line:nth-child(7) {
transform: rotate(105deg)
}
.line:nth-child(8) {
transform: rotate(120deg)
}
.line:nth-child(9) {
transform: rotate(135deg)
}
.line:nth-child(10) {
transform: rotate(150deg)
}
.line:nth-child(11) {
transform: rotate(165deg)
}
.line:nth-child(12) {
transform: rotate(180deg)
}
.flag > div > div.green {
position: absolute;
height: 300px;
width: 100%;
background-color: green;
top: 300px;
}
</style>
</head>
<!--
IMPORTANT! Do not change any HTML
Don't add any classes/ids/elements
Use what you know about combining selectors
and CSS specificity instead.
Hint 1: The flag is 900px by 600px and the circle is 200px by 200px.
Hint 2: You can use CSS inspection to get the colors from
https://appbrewery.github.io/flag-of-laos/
-->
<body>
<div class="flag">
<p>The Flag</p>
<div>
<div class="wheel">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<div>
</div>
<p>of</p>
</div>
<div class="green">
<p>India</p>
</div>
</div>
</div>
</body>
</html>