-
Notifications
You must be signed in to change notification settings - Fork 0
/
#24-Switches.htm
50 lines (45 loc) · 937 Bytes
/
#24-Switches.htm
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
<div a>
<div b>
<div d> </div>
</div>
<div c>
<div e></div>
</div>
<style>
body {
background: #62306D;
}
[a] {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
width: 240px;
height: 200px;
}
[b],
[c] {
width: 100px;
height: 150px;
background: #AA445F;
position: absolute;
border-radius: 100px
}
[c] {
right: 0;
bottom: 0;
background: #E38F66;
}
[d],
[e] {
width: 100px;
height: 100px;
background: #F7EC7D;
border-radius: 50%;
}
[d] {
position: absolute;
bottom: 0;
}
</style>