-
Notifications
You must be signed in to change notification settings - Fork 0
/
024_switches.html
48 lines (48 loc) · 1017 Bytes
/
024_switches.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Switches</title>
<style>
* {
margin: 0;
}
section{
width: 400px;
height: 300px;
background: #62306D;
}
div, p {
position: absolute;
border-radius: 50px;
width: 100px;
}
div {
height: 150px;
background: #AA445F;
top: 50px;
left: 80px;
}
div[i] {
background: #E38F66;
top: 100px;
left: 220px;
}
p {
height: 100px;
background: #F7EC7D;
}
p[i] {
bottom: 0;
}
</style>
</head>
<body>
<section>
<div><p i></p></div>
<div i><p ></p></div>
</section>
</body>
</html>