Skip to content

Instantly share code, notes, and snippets.

@markphilpot
Last active October 8, 2025 15:52
Show Gist options
  • Select an option

  • Save markphilpot/47cb291d42e6fbbb419571c9bc4418f0 to your computer and use it in GitHub Desktop.

Select an option

Save markphilpot/47cb291d42e6fbbb419571c9bc4418f0 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
}
.bg {
/* The image used */
background-image: url("https://media1.tenor.com/m/DmN5B0SXQHMAAAAd/let-me-explain-sum-up.gif");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<div class="bg"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment