Skip to content

Instantly share code, notes, and snippets.

@haggen
Created February 18, 2015 19:48
Show Gist options
  • Save haggen/fe56a97981c733e214cf to your computer and use it in GitHub Desktop.
Save haggen/fe56a97981c733e214cf to your computer and use it in GitHub Desktop.
Reference Grid with CSS gradient
/* Reference Grid with CSS gradient */
* {
padding: 0;
margin: 0;
}
body {
background:
repeating-linear-gradient(180deg, transparent 0, transparent 50%, rgba(0, 0, 0, .125) 50%, rgba(0, 0, 0, .125) 100%),
repeating-linear-gradient(90deg, transparent 0, transparent 50%, rgba(0, 0, 0, .125) 50%, rgba(0, 0, 0, .125) 100%);
background-size: 100px 100px;
}
div {
background: red;
width: 100px;
height: 100px;
margin: 250px;
}
// alert('Hello world!');
{"view":"split","fontsize":"90","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment