-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssignment3.html
110 lines (95 loc) · 2.22 KB
/
Assignment3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Assignment 3</title>
<meta name="viewport" content="width=device-width initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<style>
body > div {
border-radius: 100%;
border: grey 15px solid;
width: 30vw;
height: 60vh;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 2;
}
div > div {
border-radius: 100%;
border: orangered 16px solid;
width: 28vw;
height: 56vh;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
article {
width: 98vw;
height: 100vh;
position: relative;
}
article > section {
position: absolute;
border-radius: 100%;
font-size: 50px;
text-align: center;
width: 30vw;
height: 60vh;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: auto;
}
body > article:nth-child(2) > section {
background: darkmagenta;
}
body > article:nth-child(4) > section {
background: cornflowerblue;
}
body > article:nth-child(6) > section {
background: tomato;
}
h2 {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 50px;
text-align: center;
color: white;
margin: auto;
}
h2:nth-child(3) {
width: max-content;
height: max-content;
}
</style>
</head>
<body>
<div>
<div></div>
</div>
<article>
<section>
<h2>Hello</h2>
</section>
</article>
<article></article>
<article>
<section>
<h2>Welcome To</h2>
</section>
</article>
<article></article>
<article>
<section>
<h2>Institute of Software Engineering</h2>
</section>
</article>
</body>
</html>