-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay11_FlagChallenge.css
62 lines (53 loc) · 971 Bytes
/
Day11_FlagChallenge.css
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
*/
<!doctype html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="flag flag-swiss">
<div class="cross cross1"></div>
<div class="cross cross2"></div>
</div>
</body>
</html>
/*
html, body {
margin: 0;
padding: 0;
}
:root {
--white: #fff;
--red: #FF0002;
}
.flag {
background: var(--red);
width: 200px;
height: 200px;
position: absolute;
/* centering: */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.cross1 {
background: var(--white);
width: 35px;
height: 135px;
position: absolute;
/* centering: */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.cross2 {
background: var(--white);
width: 135px;
height: 35px;
position: absolute;
/* centering: */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}