Skip to content

Instantly share code, notes, and snippets.

@MainakRepositor
Created March 26, 2021 10:13
Show Gist options
  • Save MainakRepositor/3871788534e6260ba0676e36098faa14 to your computer and use it in GitHub Desktop.
Save MainakRepositor/3871788534e6260ba0676e36098faa14 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
video {
width: 100%;
height: auto;
}
h1 {
text-align:center;
font-size:45px;
background: -webkit-linear-gradient(yellow,red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
</head>
<body>
<h1>Responsive Video</h1>
<video width="400" controls>
<source src="mov_bbb.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
<p>Responsive Video Scaling.</p>
</body>
</html>
@MainakRepositor
Copy link
Author

includes text formatted header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment