mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 00:38:26 +01:00
Merge branch 'master' into new-branch
This commit is contained in:
commit
5fd83eaf09
3 changed files with 36 additions and 0 deletions
25
iframe/index.html
Normal file
25
iframe/index.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<title>HTML Tips and Tricks - Meter</title>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="demo">
|
||||
<a href="../index.html" class="home">
|
||||
<img src="../home.svg" alt="home" />
|
||||
</a>
|
||||
<h1>Iframe Tag</h1>
|
||||
<iframe src="https://www.youtube.com/embed/tgbNymZ7vqY"
|
||||
width="560" height="315" frameborder="0" allowfullscreen
|
||||
class="embed-youtube"></iframe>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -107,6 +107,10 @@
|
|||
Lazy Loading</a> - Lazy Load html images natively
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href='./iframe/index.html'>
|
||||
Iframe</a> - Embed YouTube Videos
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<br><br><br><br><br><br><br><br><br>
|
||||
|
|
7
main.css
7
main.css
|
@ -119,6 +119,7 @@ dialog::backdrop {
|
|||
);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.figure {
|
||||
margin: 10px auto 30px auto;
|
||||
display: flex;
|
||||
|
@ -143,3 +144,9 @@ justify-content: center;
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.embed-youtube {
|
||||
border: 1px solid #ffffff;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue