-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (66 loc) · 1.55 KB
/
index.html
File metadata and controls
77 lines (66 loc) · 1.55 KB
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
<!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>How can I make an iframe resizable?</title>
<link rel="icon" href="ahkambohlogo.png">
</head>
<style>
html {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
body {
display: grid;
justify-content: center;
align-items: center;
height: 98vh;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.resizer {
display: flex;
margin: 0;
padding: 0;
resize: both;
transform: scale(3);
overflow: auto;
margin-bottom: auto;
}
.resizer>.resized {
flex-grow: 1;
margin: 0;
padding: 0;
border: 0;
}
.border {
background: rgb(23, 21, 21);
border: 1px solid rgb(255, 255, 255);
}
h1 {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
color: white;
text-transform: capitalize;
position: relative;
top: 5%;
}
</style>
<body >
<h1>iframe resizable</h1>
<div class="resizer border" >
<iframe class="resized" src="https://www.youtube.com/embed/AZBtUNzL450"></iframe>
</div>
</body>
</html>