-
Notifications
You must be signed in to change notification settings - Fork 37
/
making_overlays.html
61 lines (59 loc) · 1.82 KB
/
making_overlays.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
<!DOCTYPE html>
<html>
<Head>
<Title>PopLink Ad Sample</Title>
<style>
html, body {
height: 100%;
/* background-color: lemonchiffon; */
}
#content{
position:relative;
}
#overlay {
position: absolute;
display:inline-block;
width: 400px;
height: 110px;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index:1;
cursor: pointer;
}
.overlay{background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4)}
/* .overlay-content{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:500px} */
.container{padding:0.2em 6px;overflow:hidden;display:inline-flexbox;}
.container:after,.w3-container:before{content:"";clear:both}
.teal,.w3-hover-teal:hover{color:#fff!important;background-color:#009688!important}
.button:hover{color:#000!important;background-color:#ccc!important}
.display-topright{position:absolute;right:0;top:0}
.button{width:25px}
.button:disabled{cursor:not-allowed;opacity:0.3}
.button{border:none;display:inline-block;vertical-align:middle;overflow:hidden;text-decoration:solid;color:inherit;
background-color:inherit;text-align:center;cursor:pointer;white-space:nowrap}
</style>
</Head>
<body>
<!-- <div id="content"> -->
<div id="overlay" class="w3-overlay">
<header class="container teal">
<span onclick="document.getElementById('overlay').style.display='none'"
class="button display-topright">×</span>
<h4>Header</h4>
</header>
<a href="https://google.com">
<div class="container teal" >
<img src="https://media.giphy.com/media/YlmI36YAWe7KScC7hK/giphy.gif" height="50px" width="360px">
</div>
</a>
<!-- <footer class="container teal">
<h6>*Terms and Conditions Applied</h6>
</footer> -->
</div>
<!-- </div>
<script>
</script> -->
</body>
</html>