forked from sheldon34/Bootstrap_projects.htm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Flagproject.html
67 lines (63 loc) · 1.17 KB
/
Flagproject.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Flag Project</title>
<style>
/* Write your CSS Code here */
.flag{
background-color: #ff0000;
height: 600px;
width: 900px;
position: relative;
top: 300px;
left: 450px;
position: relative;
}
.flag >div{
width: 100%;
height: 300px;
background-color: #002868;
position: absolute;
}
.flag > div >div{
width: 200px;
height: 200px;
background-color: #fff;
border-radius: 50%;
position: relative;
left: 350px;
top:50px ;
}
p{
margin: 0;
text-align: center;
font-size: 5rem;
color: #fff;
}
body > div > div > div > p{
color: #000;
}
</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>
<p>
of Laos</p>
</div>
</div>
</div>
</body>
</html>