-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
93 lines (93 loc) · 1.57 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<a href="index.html">home</a>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport"
content="width=device-width,
initial-scale=1.0">
<style>
.box {
background-color: black;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
p {
font-size: 17px;
align-items: center;
}
.box a {
display: inline-block;
background-color: #fff;
padding: 15px;
border-radius: 3px;
}
.modal {
align-items: center;
display: flex;
justify-content: center;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(254, 126, 126, 0.7);
transition: all 0.4s;
visibility: hidden;
opacity: 0;
}
.content {
position: absolute;
background: white;
width: 400px;
padding: 1em 2em;
border-radius: 4px;
}
.modal:target {
visibility: visible;
opacity: 1;
}
.box-close {
position: absolute;
top: 0;
right: 15px;
color: #fe0606;
text-decoration: none;
font-size: 30px;
}
</style>
</head>
<body>
<div class="">
<a href="lol for pop up">
Click to Open Popup Box !
</a>
</div>
<div id=""></div>
</body>
<body>
<div class="box">
<a href="inportened">
Click to Open Popup Box !
</a>
</div>
<div id="popup-box" class="modal">
<div class="content">
<h1 style="color: green;">
i will take a break from making games !
</h1>
<b>
<p>have fun</p>
</b>
<a href="#"
class="box-close">
×
</a>
</div>
</div>
</body>
</html>