Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 20:39
Show Gist options
  • Save trumball/5646370 to your computer and use it in GitHub Desktop.
Save trumball/5646370 to your computer and use it in GitHub Desktop.
CSS3 Checkered Pattern Similar to the polka-dots above we can also create a full seamless checkerboard pattern. This method requires a bit more syntax to get working, but it looks flawless in all CSS3-supported browsers. Also you can change the color values from white and black to match that of your own website color scheme.
body {
background-color: white;
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
background-size: 100px 100px;
background-position: 0 0, 50px 50px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment