Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthewcopeland/3383491 to your computer and use it in GitHub Desktop.
Save matthewcopeland/3383491 to your computer and use it in GitHub Desktop.
A quick reference for checking repeatable background patterns.
<!DOCTYPE html>
<html>
<head>
<style>
body {
/* Replace your image in this spot. */
background-image: url("yourimage.png");
/* set a color here */
background-color: #efefef;
}
html, body {
padding: 0;
margin: 0;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
div { padding: 20px; }
</style>
</head>
<body>
<div>
<h1>Repeatable Background Checker Thingy</h1>
<h2>Instructions</h2>
<ol>
<li>Put your image in the same folder as this file.
<li>Replace line-7's image-name with yours.
<li>If you like, change the background-color on line 10.
</ol>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment