-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise-2-solution.html
40 lines (37 loc) · 1.08 KB
/
exercise-2-solution.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exercise 2</title>
<style>
body,
html {
height: 100%;
}
body {
background-image: linear-gradient(to right, transparent 100px, #ff0c0c 100px, #ff0c0c 102px, transparent 102px), linear-gradient(to bottom, white 100px, transparent 100px), repeating-linear-gradient(to bottom, white, white 20px, #1c2cff 20px, #1c2cff 21px);
position: relative;
margin: 0;
}
.punch-hole {
position: absolute;
width: 25px;
height: 25px;
background-color: #e2e2e2;
left: 35px;
top: 105px;
border: 1px solid black;
border-radius: 50%;
box-shadow: 1px 1px 2px inset #00000099;
}
.punch-hole:nth-child(2) {
top: 400px;
}
</style>
</head>
<body>
<div class="punch-hole"></div>
<div class="punch-hole"></div>
</body>
</html>